refacto(ci): local and jenkins Lighthouse audit use common docker compose service (#3)
All checks were successful
Portfolio/pipeline/head This commit looks good
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user