refactor(ci): local and jenkins audit use same docker compose and optimize npm cache
Some checks failed
Portfolio/pipeline/head There was a failure building this commit

This commit is contained in:
2026-01-12 17:51:35 +01:00
parent c6b0cde818
commit 478ff5f85a
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: