ci(lighthouse): add local lighthouse audit
All checks were successful
Portfolio/pipeline/head This commit looks good
All checks were successful
Portfolio/pipeline/head This commit looks good
This commit is contained in:
14
local-lighthouse.sh
Executable file
14
local-lighthouse.sh
Executable 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
|
||||
Reference in New Issue
Block a user