2026-04-24 17:24:37 +02:00
|
|
|
module.exports = {
|
|
|
|
|
ci: {
|
|
|
|
|
collect: {
|
|
|
|
|
staticDistDir: './dist',
|
|
|
|
|
url: [
|
|
|
|
|
'http://localhost/index.html',
|
|
|
|
|
'http://localhost/pricing/index.html',
|
|
|
|
|
'http://localhost/imprint/index.html',
|
|
|
|
|
'http://localhost/privacy/index.html',
|
|
|
|
|
],
|
2026-04-24 17:34:27 +02:00
|
|
|
numberOfRuns: 3,
|
2026-04-24 17:24:37 +02:00
|
|
|
settings: {
|
|
|
|
|
preset: 'desktop',
|
2026-04-24 17:39:34 +02:00
|
|
|
// Flags required when Chromium runs inside a CI container or as root
|
|
|
|
|
// (Gitea act_runner on arm64 uses containers). --headless=new is the
|
|
|
|
|
// modern Chromium headless mode. CHROME_PATH is set by the workflow.
|
|
|
|
|
chromeFlags: '--no-sandbox --headless=new --disable-gpu --disable-dev-shm-usage',
|
2026-04-24 17:24:37 +02:00
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
assert: {
|
|
|
|
|
assertions: {
|
|
|
|
|
'categories:performance': ['error', { minScore: 0.95 }],
|
|
|
|
|
'categories:accessibility': ['error', { minScore: 0.95 }],
|
|
|
|
|
'categories:best-practices': ['error', { minScore: 0.95 }],
|
|
|
|
|
'categories:seo': ['error', { minScore: 0.95 }],
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
upload: {
|
|
|
|
|
target: 'temporary-public-storage',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|