Skip to content

Commit

Permalink
Update CI and test with both PostgreSQL 11 and 14 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
kubek2k authored Nov 17, 2022
1 parent efe581e commit e70d604
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 6 deletions.
50 changes: 45 additions & 5 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
#
# For more information, see https://github.com/haskell-CI/haskell-ci
#
# version: 0.15.20220730
# version: 0.15.202211107
#
# REGENDATA ("0.15.20220730",["github","--config=cabal.haskell-ci","hpqtypes-extras.cabal"])
# REGENDATA ("0.15.202211107",["github","--config=cabal.haskell-ci","hpqtypes-extras.cabal"])
#
name: Haskell-CI
on:
Expand All @@ -22,42 +22,82 @@ on:
- master
jobs:
linux:
name: Haskell-CI - Linux - ${{ matrix.compiler }}
name: Haskell-CI - Linux - ${{ matrix.compiler }} - Postgres ${{ matrix.postgres-version }}
runs-on: ubuntu-20.04
timeout-minutes:
60
container:
image: buildpack-deps:bionic
services:
postgres:
image: postgres:11
image: postgres:${{matrix.postgres-version}}
env:
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
continue-on-error: ${{ matrix.allow-failure }}
strategy:
matrix:
include:
- compiler: ghc-9.4.2
compilerKind: ghc
compilerVersion: 9.4.2
setup-method: ghcup
allow-failure: false
postgres-version: "11"
- compiler: ghc-9.4.2
compilerKind: ghc
compilerVersion: 9.4.2
setup-method: ghcup
allow-failure: false
postgres-version: "14"
- compiler: ghc-9.2.4
compilerKind: ghc
compilerVersion: 9.2.4
setup-method: ghcup
allow-failure: false
postgres-version: "11"
- compiler: ghc-9.2.4
compilerKind: ghc
compilerVersion: 9.2.4
setup-method: ghcup
allow-failure: false
postgres-version: "14"
- compiler: ghc-9.0.2
compilerKind: ghc
compilerVersion: 9.0.2
setup-method: ghcup
allow-failure: false
postgres-version: "11"
- compiler: ghc-9.0.2
compilerKind: ghc
compilerVersion: 9.0.2
setup-method: ghcup
allow-failure: false
postgres-version: "14"
- compiler: ghc-8.10.7
compilerKind: ghc
compilerVersion: 8.10.7
setup-method: ghcup
allow-failure: false
postgres-version: "11"
- compiler: ghc-8.10.7
compilerKind: ghc
compilerVersion: 8.10.7
setup-method: ghcup
allow-failure: false
postgres-version: "14"
- compiler: ghc-8.8.4
compilerKind: ghc
compilerVersion: 8.8.4
setup-method: hvr-ppa
allow-failure: false
postgres-version: "11"
- compiler: ghc-8.8.4
compilerKind: ghc
compilerVersion: 8.8.4
setup-method: hvr-ppa
allow-failure: false
postgres-version: "14"
fail-fast: false
steps:
- name: apt
Expand Down Expand Up @@ -153,7 +193,7 @@ jobs:
- name: cache (tools)
uses: actions/cache@v2
with:
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-82ff35eb
key: ${{ runner.os }}-${{ matrix.compiler }}-tools-ca962b92
path: ~/.haskell-ci-tools
- name: install cabal-plan
run: |
Expand Down
1 change: 1 addition & 0 deletions cabal.haskell-ci
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ benchmarks: True
doctest: True
tests: True
postgresql: True
postgresql-versions: 11 14
2 changes: 1 addition & 1 deletion hpqtypes-extras.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ maintainer: Andrzej Rybczak <andrzej@rybczak.net>,
copyright: Scrive AB
category: Database
build-type: Simple
tested-with: GHC ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.4
tested-with: GHC ==8.8.4 || ==8.10.7 || ==9.0.2 || ==9.2.4 || ==9.4.2

Source-repository head
Type: git
Expand Down

0 comments on commit e70d604

Please sign in to comment.