From 8da6bd8b2abbd18303a10b5a01171f245601365d Mon Sep 17 00:00:00 2001 From: defiQUG Date: Mon, 11 May 2026 21:05:25 -0700 Subject: [PATCH] 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 --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e01a82d..c9142c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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