Runs the browser tests in CI on the client output

The build artifact is now dist/client, so only that goes to the deploy jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 19:06:41 +01:00
co-authored by Claude Opus 5.5
parent 8bf0000531
commit 8867c7833c
3 changed files with 11 additions and 4 deletions
+9 -2
View File
@@ -99,7 +99,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: dist
path: web/dist/
path: web/dist/client/
retention-days: 7
# Test wacht niet op Lighthouse: test is om te testen, de rapporten zie je
@@ -192,7 +192,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: dist
path: web/dist
path: web/dist/client
- name: Install Chromium
run: |
@@ -202,6 +202,13 @@ jobs:
echo "CHROME_PATH=$CHROME_PATH" >> "$GITHUB_ENV"
"$CHROME_PATH" --version
# Browsertests tegen de gebouwde site (preview-server op dist/client). Chrome
# komt uit de stap hierboven; dezelfde containerflags als bij Lighthouse.
- name: Browsertests
env:
LIGHTHOUSE_CHROME_FLAGS: '--no-sandbox --headless=new --disable-dev-shm-usage'
run: pnpm e2e
# Chrome in een container (gelezen door lighthouserc.cjs, zie daar waarom
# niet via LHCI_*):
# --no-sandbox: als root weigert Chrome anders te starten