-
Notifications
You must be signed in to change notification settings - Fork 4
54 lines (45 loc) · 1.15 KB
/
cabal.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
name: cabal
on:
push:
branches: [main, ci-cabal]
pull_request:
branches: [main]
jobs:
build:
name: ghc ${{ matrix.ghc }}
runs-on: ubuntu-latest
strategy:
matrix:
cabal: ["3.6"]
ghc:
- "8.8.4"
- "8.10.7"
- "9.0.2"
- "9.2.2"
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v1
name: setup GHC and cabal-install
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}
- uses: rwe/actions-hlint-setup@v1
name: Set up HLint
with:
version: "3.3.6"
- uses: actions/cache@v2
name: cache ~/.cabal/store
with:
path: ~/.cabal/store
key: ${{ runner.os }}-${{ matrix.cabal }}-${{ matrix.ghc }}-cabal
- name: build
run: |
cabal update
cabal build all --enable-tests
- name: test golden
run: cabal test test:golden --test-show-details=direct --test-option="--color=always"
- uses: rwe/actions-hlint-run@v2
name: hlint
with:
path: '["library", "exe", "test-suite-golden/src"]'
fail-on: suggestion