From aaddb319bcf9c649b4f7b2ffad5c818255bd52e5 Mon Sep 17 00:00:00 2001 From: Stefano Bertelli Date: Thu, 2 Apr 2026 23:52:01 -0500 Subject: [PATCH] fix(ci): add valkey, mock-oidc services and MOCK_OIDC_HOST env for e2e tests --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b884ffb..a444a9f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,9 +23,46 @@ jobs: --health-interval 5s --health-timeout 5s --health-retries 5 + valkey: + image: valkey/valkey:8 + options: >- + --health-cmd "valkey-cli ping" + --health-interval 5s + --health-timeout 5s + --health-retries 5 + mock-oidc: + image: ghcr.io/navikt/mock-oauth2-server:2.1.10 + ports: + - 9000:9000 + env: + SERVER_PORT: "9000" + JSON_CONFIG: > + { + "interactiveLogin": true, + "httpServer": "NettyWrapper", + "tokenCallbacks": [ + { + "issuerId": "test-idp", + "tokenExpiry": 3600, + "requestMappings": [ + { + "requestParam": "scope", + "match": "*", + "claims": { + "sub": "$${claim:sub}", + "email": "$${claim:sub}@test.local", + "name": "Test User" + } + } + ] + } + ] + } env: CI: "true" WG_DATABASE_URL: postgresql+asyncpg://wiregui:wiregui@postgres/wiregui + WG_REDIS_URL: redis://valkey:6379/0 + MOCK_OIDC_HOST: mock-oidc steps: - name: Install system dependencies run: |