fix(ci): use Node.js 20 for E2E tests to fix nyc compatibility

The @cypress/code-coverage package bundles nyc@15 which is incompatible
with Node.js 22+. Downgrade to Node.js 20 for E2E tests only to maintain
coverage collection while other workflows use Node.js 22.
This commit is contained in:
Benjamin
2025-11-24 10:23:32 +01:00
parent ecd47fd8ec
commit 84e7743429

View File

@@ -48,7 +48,7 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
node-version: '20'
cache: 'npm'
cache-dependency-path: webapp/package-lock.json
@@ -114,7 +114,7 @@ jobs:
wait-on: 'http://localhost:8080/api/v1/health'
wait-on-timeout: 60
browser: chrome
headless: true
headed: false
env:
CYPRESS_baseUrl: http://localhost:8080
CYPRESS_mailhogUrl: http://localhost:8025