slackbuilder/.gitea/workflows/build.yml

37 lines
853 B
YAML
Raw Normal View History

2023-12-09 20:23:30 +01:00
name: Build
on:
push:
pull_request:
branches: [master]
jobs:
audit:
2024-03-05 23:06:32 +01:00
runs-on: haskell
2023-12-09 20:23:30 +01:00
steps:
- name: Set up environment
run: |
2024-03-05 23:06:32 +01:00
apt-get update -y
apt-get upgrade -y
apt-get install -y nodejs pkg-config liblzma-dev
2023-12-09 20:23:30 +01:00
- uses: actions/checkout@v4
- name: Install dependencies
run: |
2024-03-05 23:06:32 +01:00
cabal update
2024-03-06 13:40:36 +01:00
cabal install hlint "--constraint=hlint ==3.8"
2024-03-05 23:06:32 +01:00
- run: cabal exec hlint -- src lib tests
2023-12-09 20:23:30 +01:00
test:
2024-03-06 13:40:36 +01:00
runs-on: haskell
2023-12-09 20:23:30 +01:00
steps:
- name: Set up environment
run: |
2024-03-06 13:40:36 +01:00
apt-get update -y
apt-get upgrade -y
apt-get install -y nodejs pkg-config liblzma-dev
2023-12-09 20:23:30 +01:00
- uses: actions/checkout@v4
- name: Install dependencies
run: |
2024-03-06 13:40:36 +01:00
cabal update
- run: cabal test --test-show-details=streaming