2023-11-27 01:06:43 +01:00
|
|
|
name: Build
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-05-01 16:29:53 +02:00
|
|
|
branches:
|
|
|
|
- '**'
|
2023-11-27 01:06:43 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
audit:
|
2024-07-25 12:35:28 +02:00
|
|
|
runs-on: buildenv
|
2023-11-27 01:06:43 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
2024-07-25 12:35:28 +02:00
|
|
|
- run: hlint -- src tests
|
2023-11-27 01:06:43 +01:00
|
|
|
|
|
|
|
test:
|
2024-07-25 12:35:28 +02:00
|
|
|
runs-on: buildenv
|
2023-11-27 01:06:43 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
2024-04-03 18:17:23 +02:00
|
|
|
run: cabal update
|
|
|
|
- name: Prepare system
|
|
|
|
run: cabal build graphql-test
|
2024-04-02 21:07:31 +02:00
|
|
|
- run: cabal test --test-show-details=streaming
|
2023-11-27 01:06:43 +01:00
|
|
|
|
|
|
|
doc:
|
2024-07-25 12:35:28 +02:00
|
|
|
runs-on: buildenv
|
2023-11-27 01:06:43 +01:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install dependencies
|
2024-04-03 18:17:23 +02:00
|
|
|
run: cabal update
|
|
|
|
- run: cabal haddock --enable-documentation
|