From 8feb9bd37a1c5e6b38d8efa3c04ba522654a64eb Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 19 Oct 2024 17:25:17 -0400 Subject: [PATCH] Setup action doesn't work, try defining as a service I guess --- .gitea/workflows/test.yaml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index e35023d..6cf49fe 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -6,15 +6,22 @@ jobs: test: runs-on: ubuntu-latest container: mcr.microsoft.com/playwright:v1.48.1-jammy + services: + postgres: + image: postgres + env: + POSTGRES_PASSWORD: testpassword + POSTGRES_USER: postgres + POSTGRES_DB: test + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + ports: + - 5434:5432 steps: - uses: actions/checkout@v4 - - uses: ikalnytskyi/action-setup-postgres@v6 - with: - username: postgres - password: testpassword - database: test - port: 5434 - ssl: "on" - name: Run Tests env: NODE_OPTIONS=--max-old-space-size=8192 run: |