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 <cursoragent@cursor.com>
This commit is contained in:
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user