This repository was archived by the owner on Mar 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +80
-10
lines changed
Expand file tree Collapse file tree 2 files changed +80
-10
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ # Trigger the workflow on push or pull request, but only for the
4+ # master branch
5+ on :
6+ pull_request :
7+ push :
8+ branches : [master]
9+
10+ jobs :
11+ build :
12+ name : ghc ${{ matrix.versions.ghc }}
13+ runs-on : ubuntu-latest
14+ strategy :
15+ matrix :
16+ versions :
17+ - ghc : ' 8.0.2'
18+ cabal : ' 2.4'
19+ - ghc : ' 8.2.2'
20+ cabal : ' 2.4'
21+ - ghc : ' 8.4.4'
22+ cabal : ' 2.4'
23+ - ghc : ' 8.6.5'
24+ cabal : ' 3.2'
25+ - ghc : ' 8.8.3'
26+ cabal : ' 3.2'
27+ - ghc : ' 8.10.1'
28+ cabal : ' 3.2'
29+
30+ steps :
31+ - uses : actions/checkout@v2
32+ if : >-
33+ github.event.action == 'opened' ||
34+ github.event.action == 'synchronize' ||
35+ github.event.ref == 'refs/heads/master'
36+
37+ - uses : actions/setup-haskell@v1
38+ name : Setup Haskell
39+ with :
40+ ghc-version : ${{ matrix.versions.ghc }}
41+ cabal-version : ${{ matrix.versions.cabal }}
42+
43+ - uses : actions/cache@v1
44+ name : Cache ~/.cabal/store
45+ with :
46+ path : ~/.cabal/store
47+ key : ${{ runner.os }}-${{ matrix.versions.ghc }}-cabal
48+
49+ - name : Build
50+ run : |
51+ cabal v2-update
52+ cabal v2-build --enable-tests
53+
54+ - name : Test
55+ run : |
56+ cabal v2-test --enable-tests
Original file line number Diff line number Diff line change 1- sudo : false
1+ sudo : true
22language : haskell
33
4- # Speed builds up by caching install requirements
4+ git :
5+ depth : 5
6+
7+ cabal : " 2.4"
8+
59cache :
610 directories :
7- - $HOME/.ghc
8- - $HOME/.cabal
9-
10- ghc :
11- - ' 8.0'
12- - ' 8.2'
13- - ' 8.4'
14- - ' 8.6'
11+ - " $HOME/.cabal/store"
12+ - " $HOME/.stack"
13+ - " $TRAVIS_BUILD_DIR/.stack-work"
14+
15+ install :
16+ # HLint check
17+ - curl -sSL https://raw.github.com/ndmitchell/neil/master/misc/travis.sh | sh -s -- hlint .
18+
19+ - |
20+ curl -sSL https://get.haskellstack.org/ | sh
21+ stack --version
22+ stack build \
23+ --test \
24+ --no-run-tests \
25+ --ghc-options=-Werror
26+
27+ script :
28+ - stack test
You can’t perform that action at this time.
0 commit comments