-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (44 loc) · 1.21 KB
/
test.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
name: Tests
on:
pull_request:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
resolver-yaml:
- stack-16.31.yaml # GHC 8.8
- stack-18.28.yaml # GHC 8.10
- stack-19.33.yaml # GHC 9.0
- stack-20.26.yaml # GHC 9.2
- stack-21.25.yaml # GHC 9.4
- stack.yaml # GHC 9.6
- stack-nightly.yaml
steps:
- name: 'https://github.com/mstksg/setup-stack/issues/13'
run: 'echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV'
- name: Checkout
uses: actions/checkout@v3
- name: Setup stack
uses: haskell/actions/setup@v2
with:
enable-stack: true
stack-version: latest
- name: Set up HLint
uses: haskell/actions/hlint-setup@v2
- name: Install dependencies
run: stack --no-terminal --install-ghc test --only-dependencies
env:
STACK_YAML: ${{ matrix.resolver-yaml }}
- name: Test
run: stack --no-terminal test --haddock --no-haddock-deps
env:
STACK_YAML: ${{ matrix.resolver-yaml }}
- name: HLint
uses: haskell/actions/hlint-run@v2
with:
path: .
fail-on: warning