feat(ci): add automated Lighthouse audit pipeline (#2)
All checks were successful
Portfolio/pipeline/head This commit looks good

Co-authored-by: Lucas <lucasroyer.dev@gmail.com>
Reviewed-on: #2
This commit was merged in pull request #2.
This commit is contained in:
Lucas
2026-01-12 11:53:24 +00:00
parent ee13b191c3
commit 5a6355957f
8 changed files with 106 additions and 18 deletions

23
.lighthouserc.cjs Normal file
View File

@@ -0,0 +1,23 @@
module.exports = {
ci: {
collect: {
staticDistDir: '/app/dist',
settings: {
chromeFlags: '--no-sandbox --disable-setuid-sandbox --headless=new --disable-gpu --disable-dev-shm-usage',
},
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
},
},
};