From d907edc00c34cbcb5c1646be3a08dcd3e2943f5c Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Mon, 27 Apr 2026 17:48:05 +0400 Subject: [PATCH] chore: update playwright yml, AGAIN --- .github/workflows/playwright-scheduled.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright-scheduled.yml b/.github/workflows/playwright-scheduled.yml index e580d7e..176da1d 100644 --- a/.github/workflows/playwright-scheduled.yml +++ b/.github/workflows/playwright-scheduled.yml @@ -61,8 +61,14 @@ jobs: timeout-minutes: 45 env: CI: 'true' - NODE_ENV: production APP_ENV: ${{ github.event.inputs.target_env || 'staging' }} + # NODE_ENV is intentionally NOT set at the job level — yarn treats + # NODE_ENV=production as a signal to skip devDependencies, which + # would drop @axe-core/playwright (used by tests/p2/a11y.spec.ts). + # The build step and the webServer block in playwright.config.ts + # each wrap their own command in `cross-env NODE_ENV=production`, + # so production mode is still enforced where it matters. + # # The webServer block in playwright.config.ts reads APP_ENV and runs # `next start` against the freshly-built `.next/`. baseURL stays at # the default localhost:3005.