2023-10-16 03:32:11 +03:00
|
|
|
name: Compile, test and check the docs
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_call:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
2023-10-16 15:47:35 +03:00
|
|
|
check:
|
2023-10-16 03:32:11 +03:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2024-04-19 07:38:30 +03:00
|
|
|
- ghc: 8.10.1
|
2023-10-16 03:32:11 +03:00
|
|
|
ghc-options: ""
|
2024-04-20 13:22:26 +03:00
|
|
|
ignore-haddock: true
|
|
|
|
ignore-cabal-check: true
|
2023-10-16 03:32:11 +03:00
|
|
|
- ghc: latest
|
2024-04-20 13:22:26 +03:00
|
|
|
ignore-cabal-check: true
|
2023-10-16 03:32:11 +03:00
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
env:
|
|
|
|
POSTGRES_USER: postgres
|
|
|
|
POSTGRES_DB: postgres
|
|
|
|
POSTGRES_PASSWORD: postgres
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
options: >-
|
|
|
|
--health-cmd pg_isready
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: nikita-volkov/build-and-test-cabal-package.github-action@v1
|
|
|
|
with:
|
|
|
|
ghc: ${{matrix.ghc}}
|
|
|
|
ghc-options: ${{matrix.ghc-options}}
|
2023-10-16 04:29:53 +03:00
|
|
|
ignore-haddock: ${{matrix.ignore-haddock}}
|
2024-04-20 13:22:26 +03:00
|
|
|
ignore-cabal-check: ${{matrix.ignore-cabal-check}}
|