fix(ci): start postgres with pg_ctlcluster instead of systemctl

This commit is contained in:
2026-04-26 00:46:02 +02:00
committed by djalim
parent d1c3b93755
commit 6b8b5e6aa3
+2 -1
View File
@@ -43,7 +43,8 @@ jobs:
- name: Start postgres
run: |
sudo apt-get update -qq && sudo apt-get install -y -qq postgresql > /dev/null
sudo systemctl start postgresql
PG_VER=$(ls /etc/postgresql/)
sudo pg_ctlcluster $PG_VER main start
sudo -u postgres psql -c "CREATE USER test WITH PASSWORD 'test';"
sudo -u postgres psql -c "CREATE DATABASE polympr_test OWNER test;"