From c11da3d1596b7008d06c2b85fa06520f2ebcb79f Mon Sep 17 00:00:00 2001 From: Stepan Kuzmin Date: Sun, 7 Jun 2020 18:46:43 +0300 Subject: [PATCH] ci: hotfix --- .github/workflows/ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 855c70b..4263f12 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,11 +20,9 @@ jobs: POSTGRES_DB: test POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres - options: >- - --health-cmd pg_isready - --health-interval 10s - --health-timeout 5s - --health-retries 5 + ports: + - 5432/tcp + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - name: Check out repository code @@ -40,7 +38,7 @@ jobs: run: npm test env: POSTGRES_DB: test - POSTGRES_HOST: postgres - POSTGRES_PORT: 5432 + POSTGRES_HOST: localhost + POSTGRES_PORT: ${{ job.services.postgres.ports[5432] }} POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres