Skip to content

Support GHC-9.10

Support GHC-9.10 #65

Workflow file for this run

name: Simple
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
native:
name: "Simple: GHC ${{ matrix.ghc }} on ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest]
ghc: ['9.4.8','9.6.6','9.8.2','9.10.1']
fail-fast: false
timeout-minutes:
60
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Set up Haskell
id: setup-haskell
uses: haskell-actions/setup@v2
with:
ghc-version: ${{ matrix.ghc }}
cabal-version: '3.12.1.0'
- name: Set up PostgreSQL
uses: ikalnytskyi/action-setup-postgres@v6
id: postgres
with:
username: ci
password: sw0rdfish
database: test
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v4
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- name: Build
run: cabal build all --enable-tests
- name: Test
run: cabal test all --enable-tests --test-show-details=direct
env:
DATABASE_CONNSTRING: ${{ steps.postgres.outputs.connection-uri }}