Skip to content

Commit 4a6c184

Browse files
committed
CI: add PostgreSQL v16/17/18
1 parent 0bcaa49 commit 4a6c184

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 9 deletions
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: ['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:
@@ -56,14 +57,7 @@ jobs:
5657
run: composer phpstan
5758

5859
- name: Run tests
59-
#run: composer tests # manually with `-j 1` and retry is used because of random async connection errors
60-
uses: nick-invision/retry@v2
61-
with:
62-
timeout_seconds: 120
63-
retry_wait_seconds: 5
64-
max_attempts: 15
65-
retry_on: error
66-
command: tests/run-tests tests -j 1
60+
run: composer tests
6761

6862
- if: failure()
6963
uses: actions/upload-artifact@v4

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', '1244', '1236']); // PG12 => 1149, PG13 => 1176|1180, PG14/15 => 1188, PG16/17 => 1244, PG18 => 1236
110110
Tester\Assert::same('scanner_yyerror', \pg_result_error_field($result2, \PGSQL_DIAG_SOURCE_FUNCTION));
111111

112112
// ---

0 commit comments

Comments
 (0)