ci: avoid PostgreSQL port conflicts in tests
This commit is contained in:
1 parent
71060bd020
commit
f5ee0298d8
1 file changed
+2
-2
@@ -37,7 +37,7 @@ jobs:
|
|||||||
POSTGRES_PASSWORD: postgres
|
POSTGRES_PASSWORD: postgres
|
||||||
POSTGRES_DB: collabtable_test
|
POSTGRES_DB: collabtable_test
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "15432:5432"
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd "pg_isready -U postgres"
|
--health-cmd "pg_isready -U postgres"
|
||||||
--health-interval 5s
|
--health-interval 5s
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
TEST_DATABASE_URL: "postgres://postgres:postgres@localhost:5432/collabtable_test?sslmode=disable"
|
TEST_DATABASE_URL: "postgres://postgres:postgres@localhost:15432/collabtable_test?sslmode=disable"
|
||||||
run: |
|
run: |
|
||||||
if [ "${GITEA_ACTIONS:-}" = "true" ]; then
|
if [ "${GITEA_ACTIONS:-}" = "true" ]; then
|
||||||
export TEST_DATABASE_URL="postgres://postgres:postgres@postgres:5432/collabtable_test?sslmode=disable"
|
export TEST_DATABASE_URL="postgres://postgres:postgres@postgres:5432/collabtable_test?sslmode=disable"
|
||||||
|
|||||||
Reference in new issue
Block a user