Files
portfolio/local-lighthouse.sh
Lucas 42995a5f10
All checks were successful
Portfolio/pipeline/head This commit looks good
feat(ci): add automated Lighthouse audit pipeline
2026-01-12 18:04:04 +01:00

15 lines
333 B
Bash
Executable File

#!/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