Skip to content

Commit abf5621

Browse files
committed
CI: add PostgreSQL v12/13/14/16/17/18
1 parent 0bcaa49 commit abf5621

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ jobs:
1313
strategy:
1414
matrix:
1515
php-versions: ['8.3', '8.4']
16+
postgresql-versions: ['12', '13', '14', '15', '16', '17', '18']
1617
fail-fast: false
1718

1819
services:
1920
postgres:
20-
image: postgres:15
21+
image: postgres:${{ matrix.postgresql-versions }}
2122
env:
2223
POSTGRES_PASSWORD: postgres
2324
ports:

tests/Integration/PgFunctionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function testErrors(): void
106106
Tester\Assert::null(\pg_result_error_field($result2, \PGSQL_DIAG_INTERNAL_QUERY));
107107
Tester\Assert::null(\pg_result_error_field($result2, \PGSQL_DIAG_CONTEXT));
108108
Tester\Assert::same('scan.l', \pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_FILE));
109-
Tester\Assert::contains(\pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_LINE), ['1149', '1176', '1180', '1188']); // PG12 => 1149, PG13 => 1176|1180, PG14/15 => 1188
109+
Tester\Assert::contains(\pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_LINE), ['1149', '1176', '1180', '1188', '1236']); // PG12 => 1149, PG13 => 1176|1180, PG14/15 => 1188, PG18 => 1236
110110
Tester\Assert::same('scanner_yyerror', \pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_FUNCTION));
111111

112112
// ---

0 commit comments

Comments
 (0)