feat(ci): add automated Lighthouse audit pipeline

This commit is contained in:
2026-01-12 17:50:50 +01:00
parent ee13b191c3
commit c6b0cde818
8 changed files with 106 additions and 18 deletions

14
local-lighthouse.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
mkdir -p ./.lighthouseci
docker run --rm \
--user 0:0 \
-v ./dist:/app/dist \
-v ./.lighthouserc.cjs:/app/.lighthouserc.cjs \
-v ./.lighthouseci:/app/.lighthouseci \
-w /app \
-e CHROME_PATH=/usr/bin/chromium-browser \
zenika/alpine-chrome:with-node \
npx @lhci/cli@0.15.x collect \
--config=/app/.lighthouserc.cjs