forked from godotengine/godot-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lighthouserc.js
52 lines (46 loc) · 1.76 KB
/
lighthouserc.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = {
ci: {
collect: {
url: [
"http://localhost:8000/",
// Test news lists and one article.
"http://localhost:8000/news",
"http://localhost:8000/devblog",
"http://localhost:8000/article/first-blog-post",
"http://localhost:8000/features",
"http://localhost:8000/community",
"http://localhost:8000/community/user-groups",
"http://localhost:8000/events",
"http://localhost:8000/events/past",
"http://localhost:8000/download/linux",
"http://localhost:8000/download/osx",
"http://localhost:8000/download/windows",
"http://localhost:8000/download/server",
// Test showcase list and one item.
"http://localhost:8000/showcase",
"http://localhost:8000/showcase/kingdoms-of-the-dump",
// Pages under the "More" navbar link.
"http://localhost:8000/contact",
"http://localhost:8000/donate",
"http://localhost:8000/code-of-conduct",
"http://localhost:8000/privacy-policy",
"http://localhost:8000/license",
],
// Print "Listening" immediately so that lighthouse-ci starts as soon as possible.
startServerCommand:
"env -C october php -S localhost:8000 & echo Listening",
},
assert: {
assertions: {
// Performance testing is flaky, so we don't require a minimum performance score.
// The score thresholds are based on the lowest scores from all pages listed above.
"categories:accessibility": ["error", { minScore: 0.82 }],
"categories:best-practices": ["error", { minScore: 0.86 }],
"categories:seo": ["error", { minScore: 0.75 }],
},
},
upload: {
target: "temporary-public-storage",
},
},
};