fix(ci): use the Postgres service hostname in Gitea Actions
This commit is contained in:
1 parent
1719b3c23b
commit
71060bd020
1 file changed
+6
-1
@@ -56,9 +56,14 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test ./...
|
shell: bash
|
||||||
env:
|
env:
|
||||||
TEST_DATABASE_URL: "postgres://postgres:postgres@localhost:5432/collabtable_test?sslmode=disable"
|
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:
|
frontend:
|
||||||
name: Dashboard checks
|
name: Dashboard checks
|
||||||
|
|||||||
Reference in new issue
Block a user