generated from CaenCamp/project-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlighthouserc-ci.js
29 lines (29 loc) · 934 Bytes
/
lighthouserc-ci.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
module.exports = {
ci: {
collect: {
url: ['http://localhost:3111/'],
numberOfRuns: 5,
extends: 'lighthouse:no-pwa',
settings: {
preset: 'desktop',
skipAudits: ['uses-http2'],
},
},
assert: {
assertions: {
'categories:performance': ['error', { minScore: 0.91 }],
'categories:best-practices': ['error', { minScore: 0.95 }],
'categories:accessibility': ['error', { minScore: 0.91 }],
'categories:seo': ['error', { minScore: 0.91 }],
},
},
upload: {
target: 'lhci',
serverBaseUrl: 'https://lighthouse.caen.camp',
basicAuth: {
username: process.env.LHCI_SERVER_USER,
password: process.env.LHCI_SERVER_PASSWORD,
},
},
},
};