From 37beaa6d92abed38e5ad1d19696c25246f9379f5 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Thu, 27 Jul 2023 15:14:33 -0700 Subject: [PATCH] Fix server e2e tests on CI #3 --- .github/workflows/ci-server.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-server.yaml b/.github/workflows/ci-server.yaml index 237f00baf..bc99e75ef 100644 --- a/.github/workflows/ci-server.yaml +++ b/.github/workflows/ci-server.yaml @@ -8,7 +8,7 @@ jobs: server-test: runs-on: ubuntu-latest 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: postgres: image: postgres @@ -17,6 +17,8 @@ jobs: POSTGRES_PASSWORD: postgrespassword POSTGRES_DB: test POSTGRES_PORT: 5432 + ports: + - 5432:5432 options: >- --health-cmd pg_isready --health-interval 10s