refacto(ci): local and jenkins Lighthouse audit use common docker compose service (#3)
All checks were successful
Portfolio/pipeline/head This commit looks good

Co-authored-by: Lucas <lucasroyer.dev@gmail.com>
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
Lucas
2026-01-12 16:17:54 +00:00
parent 5a6355957f
commit f234257b5e
4 changed files with 33 additions and 16 deletions

View File

@@ -20,14 +20,16 @@ services:
volumes:
- audit_dist:/app/dist
- audit_reports:/app/.lighthouseci
- npm_cache:/root/.npm
environment:
- CHROME_PATH=/usr/bin/chromium-browser
working_dir: /app
command: npx @lhci/cli@${LHCI_VERSION} collect --config=/app/dist/audit-config.cjs
command: npx --prefer-offline @lhci/cli@${LHCI_VERSION} autorun --config=/app/dist/audit-config.cjs
volumes:
audit_dist:
audit_reports:
npm_cache:
networks:
reverse-proxy: