feat: implement automated Lighthouse CI testing for sitemap URLs with dedicated configuration and scripts.

This commit is contained in:
2026-02-01 17:35:31 +01:00
parent 950ef9d463
commit f41260e1db
5 changed files with 3231 additions and 4 deletions

22
lighthouserc.js Normal file
View File

@@ -0,0 +1,22 @@
module.exports = {
ci: {
collect: {
numberOfRuns: 1,
settings: {
preset: 'desktop',
onlyCategories: ['performance', 'accessibility', 'best-practices', 'seo'],
},
},
assert: {
assertions: {
'categories:performance': ['warn', { minScore: 0.9 }],
'categories:accessibility': ['warn', { minScore: 0.9 }],
'categories:best-practices': ['warn', { minScore: 0.9 }],
'categories:seo': ['warn', { minScore: 0.9 }],
},
},
upload: {
target: 'temporary-public-storage',
},
},
};