From 748f26d3359024f3d5f49eeb06b785e913fe57d7 Mon Sep 17 00:00:00 2001 From: Tyr Chen Date: Mon, 6 May 2024 22:04:18 -0700 Subject: [PATCH] fix: add service for gh action --- .github/workflows/build.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9f60afa..83e6033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,19 @@ jobs: matrix: platform: [ubuntu-latest] runs-on: ${{ matrix.platform }} + services: + postgres: + image: postgres:14.5 + env: + POSTGRES_PASSWORD: postgres + ports: + - 5432:5432 + # Set health checks to wait until postgres has started + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 steps: - uses: actions/checkout@v4 with: