From 1569aa03a7e0d4f09ba4dbb2ab2aebf5cd8f25fe Mon Sep 17 00:00:00 2001 From: Nick Clyde Date: Wed, 27 Sep 2023 13:42:53 -0700 Subject: [PATCH] Add postgres service to container doc generation job (#842) Add postgres service to container doc generation for record linkage container --- .github/workflows/createNewRelease.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/createNewRelease.yaml b/.github/workflows/createNewRelease.yaml index 1862d41744..1d4e74483e 100644 --- a/.github/workflows/createNewRelease.yaml +++ b/.github/workflows/createNewRelease.yaml @@ -178,6 +178,22 @@ jobs: permissions: contents: write runs-on: ubuntu-latest + services: + test-db: + image: postgres:13-alpine3.16 + env: + POSTGRES_PASSWORD: pw + POSTGRES_DB: testdb + POSTGRES_USER: postgres + # Set health checks to wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + --name testdb + ports: + - 5432:5432 strategy: matrix: container: ${{fromJson(needs.list-containers.outputs.containers)}}