Skip to content

Commit 55101c5

Browse files
committed
ci
1 parent 6699eb0 commit 55101c5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ jobs:
4242
export PGDATA=/var/lib/postgresql/${{ matrix.ci.PGVER }}/main
4343
export PGETC=/etc/postgresql/${{ matrix.ci.PGVER }}/main
4444
export PGBIN=/usr/lib/postgresql/${{ matrix.ci.PGVER }}/bin
45+
# needed for pg18 and above cause cluster is no longer created on install
46+
if [ ! -d "/etc/postgresql/${{ matrix.ci.PGVER }}/main" ]; then
47+
sudo pg_createcluster ${{ matrix.ci.PGVER }} main
48+
fi
4549
sudo cp ./ci/pg_hba.conf $PGETC/pg_hba.conf
4650
sudo su postgres -c "$PGBIN/pg_ctl --pgdata $PGDATA start -o '-c config_file=$PGETC/postgresql.conf -p 5432'"
4751

0 commit comments

Comments
 (0)