fix(ci): use postgres service hostname for DATABASE_URL on containerized runners

Gitea act_runner runs jobs in Docker; use the services: postgres hostname, not localhost.

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
defiQUG
2026-05-11 21:05:25 -07:00
co-authored by Cursor
parent 97a1cb1b96
commit 8da6bd8b2a
+2 -1
View File
@@ -46,9 +46,10 @@ jobs:
- name: Type check
run: npx tsc --noEmit
# Hostname must match `services:` id. `localhost` breaks Gitea act_runner (Docker job).
- name: Run tests
env:
DATABASE_URL: postgresql://test:test@localhost:5432/dbis_test
DATABASE_URL: postgresql://test:test@postgres:5432/dbis_test
JWT_SECRET: test-jwt-secret-minimum-32-characters-long-for-testing
ALLOWED_ORIGINS: http://localhost:3000
NODE_ENV: test