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