Skip to content

Commit 3883b82

Browse files
PhilinTvsmhg
andauthored
WIP Update CI with newer PHP and PSQL versions (#1995)
* Update ci.yml Separate v16 from the v9 runs. * Remove unsupported PSQL version 12 * fix pgsql test setup and ci (#2052) * fix syntax error in pgsql test setup * fix php and symfony version match in pgsql install --------- Co-authored-by: Sam Hauglustaine <[email protected]>
1 parent a1fb067 commit 3883b82

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,17 @@ jobs:
5151
postgresql user: $DB_USER
5252
postgresql password: $DB_PW
5353

54+
- name: Install PostgreSQL 16
55+
if: matrix.db-type == 'pgsql' && matrix.php-version == '7.4' && matrix.symfony-version == '5-max'
56+
uses: CasperWA/[email protected]
57+
with:
58+
postgresql version: 16
59+
postgresql db: $DB_NAME
60+
postgresql user: $DB_USER
61+
postgresql password: $DB_PW
62+
5463
- name: Install PostgreSQL min
55-
if: matrix.db-type == 'pgsql' && matrix.php-version == '7.4'
64+
if: matrix.db-type == 'pgsql' && matrix.php-version == '7.4' && matrix.symfony-version == '5-min'
5665
uses: CasperWA/[email protected]
5766
with:
5867
postgresql version: 9

tests/bin/setup.pgsql.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ "$DB_NAME" = "" ]; then
1616
fi
1717

1818
DB_HOSTNAME=${DB_HOSTNAME-127.0.0.1};
19-
DB_PW=${DB_PW-$PGPASSWORD};.0.1};
19+
DB_PW=${DB_PW-$PGPASSWORD};
2020
DB_PORT=${DB_PORT-5432};
2121

2222
if [ -z "$DB_PW" ]; then

0 commit comments

Comments
 (0)