File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Haskell CI
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+
9
+ jobs :
10
+ build :
11
+
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ - uses : actions/setup-haskell@v1
17
+ with :
18
+ ghc-version : ' 8.8.2'
19
+ cabal-version : ' 3.0'
20
+
21
+ - name : Cache
22
+ uses : actions/cache@v1
23
+ env :
24
+ cache-name : cache-cabal
25
+ with :
26
+ path : ~/.cabal
27
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.cabal') }}-${{ hashFiles('**/cabal.project') }}
28
+ restore-keys : |
29
+ ${{ runner.os }}-build-${{ env.cache-name }}-
30
+ ${{ runner.os }}-build-
31
+ ${{ runner.os }}-
32
+
33
+ - name : Install dependencies
34
+ run : |
35
+ cabal update
36
+ cabal build --only-dependencies --enable-tests --enable-benchmarks
37
+ - name : Build
38
+ run : cabal build --enable-tests --enable-benchmarks all
39
+ - name : Run tests
40
+ run : cabal test all
You can’t perform that action at this time.
0 commit comments