From 46cb354c9a904150c54d38f47484afea38db7995 Mon Sep 17 00:00:00 2001 From: Fergus Molloy Date: Mon, 28 Jul 2025 01:57:13 +0100 Subject: [PATCH] run in container --- .gitea/workflows/backend.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/backend.yaml b/.gitea/workflows/backend.yaml index 69df647..a2c5b40 100644 --- a/.gitea/workflows/backend.yaml +++ b/.gitea/workflows/backend.yaml @@ -41,8 +41,10 @@ jobs: run: cargo build --release --locked test: + runs-on: ubuntu-latest + container: git.molloy.xyz/fergus-molloy/ubuntu:rust-nextest services: - db: + postgres: image: postgres:17-alpine ports: - "5432:5432" @@ -55,7 +57,6 @@ jobs: --health-interval 10s --health-timeout 5s --health-retries 5 - runs-on: rust-nextest defaults: run: working-directory: ./backend @@ -74,7 +75,7 @@ jobs: - name: Run Tests run: ./scripts/test.sh env: - POSTGRES_URL: "postgresql://postgres:postgres@localhost:5432" + POSTGRES_URL: "postgresql://postgres:postgres@postgres:5432" - name: Upload Test Logs if: ${{ failure() }} uses: actions/upload-artifact@v3