From ebb7a97c113fa1d4b61b8637dfe97cae5260075c Mon Sep 17 00:00:00 2001 From: Xevion Date: Fri, 30 Jan 2026 21:34:40 -0600 Subject: [PATCH] fix(ci): add postgres container service for rust tests Also updated deprecated codeql action to v4. --- .github/workflows/ci.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 82f8366..50fb6f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,22 @@ jobs: rust-tests: name: Rust Tests runs-on: ubuntu-latest + services: + postgres: + image: postgres:17-alpine + env: + POSTGRES_USER: banner + POSTGRES_PASSWORD: banner + POSTGRES_DB: banner + ports: + - 5432:5432 + options: >- + --health-cmd pg_isready + --health-interval 10s + --health-timeout 5s + --health-retries 5 + env: + DATABASE_URL: postgresql://banner:banner@localhost:5432/banner steps: - uses: actions/checkout@v4 @@ -163,7 +179,7 @@ jobs: exit-code: 0 - name: Upload Trivy results - uses: github/codeql-action/upload-sarif@v3 + uses: github/codeql-action/upload-sarif@v4 if: always() && hashFiles('trivy-results.sarif') != '' with: sarif_file: trivy-results.sarif