From 71060bd020de47b1858fc499d2626836522e9b6b Mon Sep 17 00:00:00 2001 From: Gabriel Date: Wed, 21 Oct 2026 09:41:43 +0000 Subject: [PATCH] fix(ci): use the Postgres service hostname in Gitea Actions --- .github/workflows/tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0a004de..a8447b7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -56,9 +56,14 @@ jobs: cache: true - name: Test - run: go test ./... + shell: bash env: TEST_DATABASE_URL: "postgres://postgres:postgres@localhost:5432/collabtable_test?sslmode=disable" + run: | + if [ "${GITEA_ACTIONS:-}" = "true" ]; then + export TEST_DATABASE_URL="postgres://postgres:postgres@postgres:5432/collabtable_test?sslmode=disable" + fi + go test ./... frontend: name: Dashboard checks