2023-11-27 14:09:45 +01:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
audit:
|
2024-04-05 15:25:21 +02:00
|
|
|
runs-on: haskell
|
2023-11-27 14:09:45 +01:00
|
|
|
steps:
|
|
|
|
- name: Set up environment
|
|
|
|
run: |
|
2024-04-05 15:25:21 +02:00
|
|
|
apt-get update -y
|
|
|
|
apt-get upgrade -y
|
|
|
|
apt-get install -y nodejs pkg-config
|
2023-11-27 14:09:45 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-04-05 15:25:21 +02:00
|
|
|
cabal update
|
|
|
|
cabal install hlint "--constraint=hlint ==3.8"
|
|
|
|
- run: cabal exec hlint -- src tests
|
2023-11-27 14:09:45 +01:00
|
|
|
|
|
|
|
test:
|
2024-04-05 15:25:21 +02:00
|
|
|
runs-on: haskell
|
2023-11-27 14:09:45 +01:00
|
|
|
steps:
|
|
|
|
- name: Set up environment
|
|
|
|
run: |
|
2024-04-05 15:25:21 +02:00
|
|
|
apt-get update -y
|
|
|
|
apt-get upgrade -y
|
|
|
|
apt-get install -y nodejs pkg-config
|
2023-11-27 14:09:45 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
2024-04-05 15:25:21 +02:00
|
|
|
run: cabal update
|
|
|
|
- name: Prepare system
|
|
|
|
run: cabal build graphql-test
|
|
|
|
- run: cabal test --test-show-details=streaming
|
2023-11-27 14:09:45 +01:00
|
|
|
|
|
|
|
doc:
|
2024-04-05 15:25:21 +02:00
|
|
|
runs-on: haskell
|
2023-11-27 14:09:45 +01:00
|
|
|
steps:
|
|
|
|
- name: Set up environment
|
|
|
|
run: |
|
2024-04-05 15:25:21 +02:00
|
|
|
apt-get update -y
|
|
|
|
apt-get upgrade -y
|
|
|
|
apt-get install -y nodejs pkg-config
|
2023-11-27 14:09:45 +01:00
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
2024-04-05 15:25:21 +02:00
|
|
|
run: cabal update
|
|
|
|
- run: cabal haddock --enable-documentation
|