debug(ci): add connection diagnostics before migrate

This commit is contained in:
2026-04-26 00:54:11 +02:00
committed by djalim
parent ce4782580d
commit 26eedcc4f2
+9
View File
@@ -52,6 +52,15 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: npm install --ignore-scripts && deno install run: npm install --ignore-scripts && deno install
- name: Debug connection
run: |
echo "--- pg_hba.conf ---"
sudo cat /etc/postgresql/*/main/pg_hba.conf | grep -v "^#" | grep -v "^$"
echo "--- listening ports ---"
sudo ss -tlnp | grep 5432 || echo "nothing on 5432"
echo "--- test connection ---"
PGPASSWORD=test psql -h localhost -U test -d polympr_test -c "SELECT 1" || echo "connection failed"
- name: Apply migrations - name: Apply migrations
env: env:
POSTGRES_HOST: localhost POSTGRES_HOST: localhost