File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Simple
2
+ on :
3
+ push :
4
+ branches :
5
+ - master
6
+ pull_request :
7
+ branches :
8
+ - master
9
+
10
+ jobs :
11
+ native :
12
+ name : " Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
13
+ runs-on : ${{ matrix.os }}
14
+ strategy :
15
+ matrix :
16
+ os : [macos-latest, windows-latest]
17
+ ghc : ['8.10','9.0','9.2'] # ,'9.4.1']
18
+ fail-fast : false
19
+ timeout-minutes :
20
+ 60
21
+ steps :
22
+ - name : Set git to use LF
23
+ run : |
24
+ git config --global core.autocrlf false
25
+ git config --global core.eol lf
26
+
27
+ - name : Set up Haskell
28
+ id : setup-haskell
29
+ uses : haskell/actions/setup@v1
30
+ with :
31
+ ghc-version : ${{ matrix.ghc }}
32
+ cabal-version : ' 3.8.1.0'
33
+
34
+ - name : Set up PostgreSQL
35
+ uses : ikalnytskyi/action-setup-postgres@v3
36
+ id : postgres
37
+ with :
38
+ username : ci
39
+ password : sw0rdfish
40
+ database : test
41
+
42
+ - name : Checkout
43
+ uses : actions/checkout@v3.0.2
44
+
45
+ - name : Cache
46
+ uses : actions/cache@v2.1.3
47
+ with :
48
+ path : ${{ steps.setup-haskell.outputs.cabal-store }}
49
+ key : ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
50
+ restore-keys : ${{ runner.os }}-${{ matrix.ghc }}-
51
+
52
+ - name : Build
53
+ run : cabal build all --enable-tests
54
+
55
+ - name : Test
56
+ run : cabal test all --enable-tests --test-show-details=direct
57
+ env :
58
+ DATABASE_CONNSTRING : ${{ steps.postgres.outputs.connection-uri }}
You can’t perform that action at this time.
0 commit comments