One more try to get integration tests action working
Some checks failed
CI / Test (1.24) (push) Successful in 45s
CI / Lint (push) Successful in -25m36s
CI / Test (1.25) (push) Successful in -25m30s
CI / Build (push) Successful in 42s
Integration Tests / Integration Tests (push) Failing after -25m55s

This commit is contained in:
2025-12-28 15:43:46 +02:00
parent 27da24f575
commit 5fb9a8f231

View File

@@ -46,18 +46,23 @@ jobs:
- name: Download dependencies
run: go mod download
- name: Install PostgreSQL client
run: |
sudo apt-get update
sudo apt-get install -y postgresql-client
- name: Initialize test database
env:
PGPASSWORD: relspec_test_password
run: |
psql -h localhost -U relspec -d relspec_test -f tests/postgres/init.sql
psql -h localhost -p 5439 -U relspec -d relspec_test -f tests/postgres/init.sql
- name: Verify database setup
env:
PGPASSWORD: relspec_test_password
run: |
echo "Verifying database initialization..."
psql -h localhost -U relspec -d relspec_test -c "
psql -h localhost -p 5439 -U relspec -d relspec_test -c "
SELECT
(SELECT COUNT(*) FROM pg_namespace WHERE nspname NOT IN ('pg_catalog', 'information_schema', 'pg_toast') AND nspname NOT LIKE 'pg_%') as schemas,
(SELECT COUNT(*) FROM pg_tables WHERE schemaname NOT IN ('pg_catalog', 'information_schema')) as tables,