From caa08282a1f420ed883069aabee3ced940cc1be3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hartmut=20N=C3=B6renberg?= Date: Sun, 12 Apr 2026 21:54:16 +0200 Subject: [PATCH] ci: set PLAYWRIGHT_DATABASE_URL on e2e job After the db-target guard unblocked db:push, the Playwright webServer bootstrap in apps/web/e2e/test-server.mjs now fails with "PLAYWRIGHT_DATABASE_URL or DATABASE_URL_TEST must be configured for E2E runs." Set it to the same capakraken_test DSN already used for DATABASE_URL. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5b5242..7096a9b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -303,6 +303,8 @@ jobs: --health-retries=5 env: DATABASE_URL: postgresql://capakraken:capakraken_test@postgres:5432/capakraken_test + # Playwright test-server.mjs requires an explicit test DB URL. + PLAYWRIGHT_DATABASE_URL: postgresql://capakraken:capakraken_test@postgres:5432/capakraken_test # prisma-with-env.mjs refuses to run unless DATABASE_URL's db name matches # the expected target; default is "capakraken", CI uses capakraken_test. CAPAKRAKEN_EXPECTED_DB_NAME: capakraken_test