git.iko.soy/typeable/postgresql-simple
on master help sign in
58 lines 1.5 kB history raw
1name: Simple
2on:
3 push:
4 branches:
5 - master
6 pull_request:
7 branches:
8 - master
10jobs:
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.8','9.6.3','9.8.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
27 - name: Set up Haskell
28 id: setup-haskell
29 uses: haskell/actions/setup@v2
30 with:
31 ghc-version: ${{ matrix.ghc }}
32 cabal-version: '3.10.2.0'
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
42 - name: Checkout
43 uses: actions/checkout@v3.0.2
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 }}-
52 - name: Build
53 run: cabal build all --enable-tests
55 - name: Test
56 run: cabal test all --enable-tests --test-show-details=direct
57 env:
58 DATABASE_CONNSTRING: ${{ steps.postgres.outputs.connection-uri }}