@@ -0,0 +1,58 @@
12+ name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
13+ runs-on: ${{ matrix.os }}
16+ os: [macos-latest, windows-latest]
17+ ghc: ['8.10','9.0','9.2'] # ,'9.4.2']
22+ - name: Set git to use LF
24+ git config --global core.autocrlf false
25+ git config --global core.eol lf
27+ - name: Set up Haskell
29+ uses: haskell/actions/setup@v1
31+ ghc-version: ${{ matrix.ghc }}
32+ cabal-version: '3.8.1.0'
34+ - name: Set up PostgreSQL
35+ uses: ikalnytskyi/action-setup-postgres@v3
43+ uses: actions/checkout@v3.0.2
46+ uses: actions/cache@v2.1.3
48+ path: ${{ steps.setup-haskell.outputs.cabal-store }}
49+ key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
50+ restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
53+ run: cabal build all --enable-tests
56+ run: cabal test all --enable-tests --test-show-details=direct
58+ DATABASE_CONNSTRING: ${{ steps.postgres.outputs.connection-uri }}