From f0bb197611bf1c2d38fa7c594f7318f2367647dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sun, 15 Feb 2026 19:17:40 +0100 Subject: [PATCH] Add PostgreSQL service to GitHub Actions workflow --- .github/workflows/docker.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 04967b8..c70f0ed 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -13,6 +13,26 @@ jobs: env: DJANGO_SECRET_KEY: 1234567890 DJANGO_DEBUG: False + POSTGRES_DB: ttvdrops_test + POSTGRES_USER: ttvdrops_test + POSTGRES_PASSWORD: testpass123 + POSTGRES_HOST: postgres + POSTGRES_PORT: 5432 + + services: + postgres: + image: postgres:17 + env: + POSTGRES_DB: ttvdrops_test + POSTGRES_USER: ttvdrops_test + POSTGRES_PASSWORD: testpass123 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5432:5432 steps: - uses: docker/login-action@v3