From c81d62d9da23d8bc05d800e334ef96e46fd09125 Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Tue, 1 Oct 2024 17:56:41 +0200 Subject: [PATCH] ci: try service port --- .gitea/workflows/test.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 858f6b3..01aeb6a 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -45,9 +45,9 @@ jobs: - name: Push Database - Test run: bun run db:push env: - POSTGRES_URL: postgres://postgres:postgres@localhost:5432/postgres + POSTGRES_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres - name: Test API run: bun test:api env: - POSTGRES_URL: postgres://postgres:postgres@localhost:5432/postgres \ No newline at end of file + POSTGRES_URL: postgres://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres \ No newline at end of file