ci: add TEST_DB_HOST and debug echo to verify env propagation
Backend Tests / test (push) Failing after 59s

This commit is contained in:
2026-06-25 01:17:25 +01:00
parent 7accd73463
commit b646497eb7
+4 -1
View File
@@ -60,9 +60,12 @@ jobs:
- name: Test (all packages)
working-directory: backend
run: go test -tags "test,dev" -count=1 -v -timeout 120s ./handlers/... ./auth/... ./mw/... ./internal/... ./db/...
run: |
echo "POSTGRES_HOST=$POSTGRES_HOST TEST_DB_HOST=$TEST_DB_HOST"
go test -tags "test,dev" -count=1 -v -timeout 120s ./handlers/... ./auth/... ./mw/... ./internal/... ./db/...
env:
POSTGRES_HOST: postgres
TEST_DB_HOST: postgres
PGUSER: myuser
PGPASSWORD: mypassword
PGDATABASE: mydb