Files
godot-website/lighthouserc.js
Hugo Locurcio c7dec1add2 Fix GodotCon banner overlaying Patreon banner
The GodotCon banner is now placed below the navbar. This also
allows displaying it on mobile again.
2021-05-19 20:56:39 +02:00

53 lines
1.8 KiB
JavaScript

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.74 }],
},
},
upload: {
target: "temporary-public-storage",
},
},
};