From 60fed9d0f2e358fedcb8b7723bf3d90bae167d31 Mon Sep 17 00:00:00 2001 From: Florian Wilhelm Date: Fri, 3 May 2024 10:59:10 +0200 Subject: [PATCH] Add db container in ci --- .github/workflows/ci.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 47d9e54..861a40e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -13,6 +13,27 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + env: + PGUSER: glvd + PGDATABASE: glvd + PGPASSWORD: glvd + PGHOST: postgres + PGPORT: 5432 + + services: + postgres: + image: ghcr.io/gardenlinux/glvd-postgres:edgesampledata + env: + POSTGRES_USER: glvd + POSTGRES_DB: glvd + POSTGRES_PASSWORD: glvd + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 steps: - uses: actions/checkout@v4