Fix server e2e tests on CI #2
This commit is contained in:
12
.github/workflows/ci-server.yaml
vendored
12
.github/workflows/ci-server.yaml
vendored
@ -5,11 +5,10 @@ on:
|
|||||||
- main
|
- main
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
jobs:
|
jobs:
|
||||||
postgres-job:
|
server-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: node:10.18-jessie
|
env:
|
||||||
steps:
|
PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/test?connection_limit=1
|
||||||
- run: echo "Postgres job finished"
|
|
||||||
services:
|
services:
|
||||||
postgres:
|
postgres:
|
||||||
image: postgres
|
image: postgres
|
||||||
@ -23,11 +22,6 @@ jobs:
|
|||||||
--health-interval 10s
|
--health-interval 10s
|
||||||
--health-timeout 5s
|
--health-timeout 5s
|
||||||
--health-retries 5
|
--health-retries 5
|
||||||
server-test:
|
|
||||||
needs: postgres-job
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
PG_DATABASE_URL: postgres://postgres:postgrespassword@postgres:5432/test?connection_limit=1
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
|||||||
Reference in New Issue
Block a user