File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,82 +3,66 @@ name: build
33on :
44 push :
55 branches :
6- - master
6+ - main
77 pull_request :
88 branches :
9- - master
9+ - main
1010 schedule :
1111 - cron : ' 0 0 * * *'
1212
1313jobs :
1414 build :
15- name : ${{ matrix.os }} / Cabal ${{ matrix.cabal }} / GHC ${{ matrix.ghc }}
15+ name : ${{ matrix.os }} / GHC ${{ matrix.ghc }}
1616 runs-on : ${{ matrix.os }}
1717
1818 strategy :
1919 matrix :
2020 os :
21- - ubuntu-16.04
22- cabal :
23- - 3.2
21+ - ubuntu-18.04
2422 ghc :
25- - 7.4.1
26- - 7.4.2
27- - 7.6.1
28- - 7.6.2
29- - 7.6.3
30- - 7.8.1
31- - 7.8.2
32- - 7.8.3
33- - 7.8.4
34- - 7.10.1
35- - 7.10.2
36- - 7.10.3
37- - 8.0.1
38- - 8.0.2
39- - 8.2.1
40- - 8.2.2
41- - 8.4.1
42- - 8.4.2
43- - 8.4.3
44- - 8.4.4
45- - 8.6.1
46- - 8.6.2
47- - 8.6.3
48- - 8.6.4
49- - 8.6.5
50- - 8.8.1
51- - 8.8.2
52- - 8.8.3
53- - 8.8.4
54- - 8.10.1
55- - 8.10.2
23+ - ' 7.4'
24+ - ' 7.6'
25+ - ' 7.8'
26+ - ' 7.10'
27+ - ' 8.0'
28+ - ' 8.2'
29+ - ' 8.4'
30+ - ' 8.6'
31+ - ' 8.8'
32+ - ' 8.10'
33+ - ' 9.0'
34+ - ' 9.2'
5635 include :
5736 - os : macos-latest
58- cabal : 3.2
59- ghc : 8.10.2
37+ ghc : latest
6038 - os : windows-latest
61- cabal : 3.2
62- ghc : 8.10.2
39+ ghc : latest
40+
6341 steps :
64- - uses : actions/checkout@v2
65- - uses : actions /setup-haskell@v1
42+ - uses : actions/checkout@v3
43+ - uses : hspec /setup-haskell@v1
6644 with :
67- cabal-version : ${{ matrix.cabal }}
6845 ghc-version : ${{ matrix.ghc }}
6946
7047 - name : Install dependencies
7148 run : |
7249 cabal update
73- cabal build --only-dependencies --enable-tests --enable-benchmarks
50+ cabal configure --enable-tests --enable-benchmarks # NOTE: --enable-tests is necessary due to https://github.com/haskell/cabal/issues/5079
51+ cabal build --only-dependencies
52+
7453 - name : Build
75- run : cabal build --enable-tests --enable-benchmarks all
54+ run : cabal build all
55+
7656 - name : Run tests
7757 run : cabal test all --test-show-details=direct
7858 env :
7959 HSPEC_OPTIONS : --color
8060
8161 success :
82- needs : [ build]
62+ needs : build
8363 runs-on : ubuntu-latest
84- steps : [run: echo success]
64+ if : always() # this is required as GitHub considers "skipped" jobs as "passed" when checking branch protection rules
65+
66+ steps :
67+ - run : exit 1
68+ if : needs.build.result != 'success'
Original file line number Diff line number Diff line change @@ -15,5 +15,5 @@ library:
1515
1616tests :
1717 spec :
18- defaults : hspec/hspec@master
18+ defaults : hspec/hspec@main
1919 dependencies : strip
You can’t perform that action at this time.
0 commit comments