Fix server e2e tests on CI #3
This commit is contained in:
4
.github/workflows/ci-server.yaml
vendored
4
.github/workflows/ci-server.yaml
vendored
@ -8,7 +8,7 @@ jobs:
|
|||||||
server-test:
|
server-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/test?connection_limit=1
|
PG_DATABASE_URL: postgres://postgres:postgrespassword@localhost:5432/test?connection_limit=1
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
@ -17,6 +17,8 @@ jobs:
|
|||||||
POSTGRES_PASSWORD: postgrespassword
|
POSTGRES_PASSWORD: postgrespassword
|
||||||
POSTGRES_DB: test
|
POSTGRES_DB: test
|
||||||
POSTGRES_PORT: 5432
|
POSTGRES_PORT: 5432
|
||||||
|
ports:
|
||||||
|
- 5432:5432
|
||||||
options: >-
|
options: >-
|
||||||
--health-cmd pg_isready
|
--health-cmd pg_isready
|
||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
|
|||||||
Reference in New Issue
Block a user