From 0691e708e8e614ba4a1f5a75a0b9cd18b5a7a654 Mon Sep 17 00:00:00 2001 From: Jan Klattenhoff Date: Wed, 25 Sep 2024 09:48:53 +0200 Subject: [PATCH] feat(ci): add PostgreSQL service to workflow configuration --- .gitea/workflows/qs.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitea/workflows/qs.yml b/.gitea/workflows/qs.yml index 43fcf81..d796d4c 100644 --- a/.gitea/workflows/qs.yml +++ b/.gitea/workflows/qs.yml @@ -9,6 +9,20 @@ jobs: runs-on: "ubuntu-latest" container: image: "cimg/openjdk:21.0-node" + services: + postgres: + image: postgres:15 + env: + POSTGRES_DB: lf8_starter_db + POSTGRES_USER: lf8_starter + POSTGRES_PASSWORD: secret + ports: + - 5432:5432 + options: >- + --health-cmd="pg_isready -U lf8_starter" + --health-interval=10s + --health-timeout=5s + --health-retries=3 steps: - name: "Checkout" uses: actions/checkout@v3