-
-
Notifications
You must be signed in to change notification settings - Fork 62
60 lines (50 loc) · 1.39 KB
/
haskell-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Haskell CI
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
push:
branches:
- main
jobs:
build:
strategy:
matrix:
ghc: ["8.4.4", "8.6.5", "8.8.3", "8.10.7", "9.0.2", "latest"]
fail-fast: false
runs-on: ubuntu-latest
name: GHC ${{ matrix.ghc}}
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup-hs
with:
ghc: ${{ matrix.ghc }}
- name: Install dependencies
run: stack build --fast --skip-ghc-check --no-terminal --test --only-dependencies
- name: Build
run: stack build --fast
- name: Build Bench and Haddock
run: stack build --fast --no-run-benchmarks --haddock --no-haddock-deps
- name: Test
run: stack test --fast
- name: Test Code Gen
run: |
stack install --fast morpheus-graphql-code-gen
npm run code-gen:check
hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: lint
run: curl -sSL https://raw.github.com/ndmitchell/hlint/master/misc/run.sh | sh -s .
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-hs
- name: check
shell: bash
run: hconf format --check
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true