Skip to content

Commit 3a5318d

Browse files
committed
ci: add PostgreSQL version matrix for CI testing
Run full test suite against PostgreSQL 14, 15, 16, 17, and 18 in parallel. PG_VERSION env var allows version selection with default of 17.
1 parent 160d827 commit 3a5318d

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,14 @@ env:
1313

1414
jobs:
1515
test:
16-
name: Test
16+
name: Test (PostgreSQL ${{ matrix.pg_version }})
1717
runs-on: blacksmith-16vcpu-ubuntu-2204
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
pg_version: [14, 15, 16, 17, 18]
22+
env:
23+
PG_VERSION: ${{ matrix.pg_version }}
1824
steps:
1925
- uses: actions/checkout@v4
2026
- uses: ./.github/actions/setup-test

tests/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
postgres: &postgres
3-
image: postgres:17
3+
image: postgres:${PG_VERSION:-17}
44
pull_policy: always
55
container_name: postgres
66
command: -c 'config_file=/etc/postgresql/postgresql.conf'
@@ -32,7 +32,7 @@ services:
3232

3333
postgres-17-tls:
3434
<<: *postgres
35-
image: postgres:17
35+
image: postgres:${PG_VERSION:-17}
3636
container_name: postgres-17-tls
3737
environment:
3838
PGPORT: 5617

0 commit comments

Comments
 (0)