From 3f53b112aebc8459f0cb448d7f74c17e343699d5 Mon Sep 17 00:00:00 2001 From: Lars Hampe Date: Tue, 1 Oct 2024 14:18:56 +0200 Subject: [PATCH] ci: rename postgres hostname, add postgres_url to test run --- .gitea/workflows/test.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml index 28c0406..bae149a 100644 --- a/.gitea/workflows/test.yaml +++ b/.gitea/workflows/test.yaml @@ -3,7 +3,7 @@ run-name: ${{ gitea.actor }} on: [workflow_call] jobs: - build: + test: runs-on: ubuntu-latest services: postgres: @@ -38,7 +38,9 @@ jobs: - name: Push Database run: bun run db:push env: - POSTGRES_URL: postgres://postgres:postgres@localhost:5432/postgres + POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres - name: Test API - run: bun test:api \ No newline at end of file + run: bun test:api + env: + POSTGRES_URL: postgres://postgres:postgres@postgres:5432/postgres \ No newline at end of file