Files
portfolio/.lighthouserc.cjs
Lucas f234257b5e
All checks were successful
Portfolio/pipeline/head This commit looks good
refacto(ci): local and jenkins Lighthouse audit use common docker compose service (#3)
Co-authored-by: Lucas <lucasroyer.dev@gmail.com>
Reviewed-on: #3
2026-01-12 16:17:54 +00:00

24 lines
722 B
JavaScript

module.exports = {
ci: {
collect: {
staticDistDir: '/app/dist',
settings: {
chromeFlags: '--no-sandbox --disable-setuid-sandbox --headless=new --disable-gpu --disable-dev-shm-usage',
targets: ['filesystem'],
},
numberOfRuns: 1
},
assert: {
assertions: {
'categories:performance': ['error', {minScore: 0.9}],
'categories:accessibility': ['error', {minScore: 0.9}],
'categories:best-practices': ['error', {minScore: 0.9}],
'categories:seo': ['error', {minScore: 0.9}],
},
},
upload: {
target: 'filesystem',
outputDir: './.lighthouseci', // C'est ici que Jenkins ira chercher les fichiers
},
},
};