fix(ci): use postgres service hostname for DATABASE_URL on containerized runners
Some checks failed
CI / test (push) Failing after 6m51s
CI / security (push) Failing after 2m9s
CI / build (push) Failing after 3m34s

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

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
defiQUG
2026-05-11 21:05:25 -07:00
parent 97a1cb1b96
commit 8da6bd8b2a

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