Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance debug #3

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 16 additions & 14 deletions .github/workflows/unlighthouse.config-cms.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
module.exports = {
site: 'cms.gov',
puppeteerOptions: {
args: ["--no-sandbox", '--disable-dev-shm-usage'],
concurrency: 1,
},
args: ["--no-sandbox", '--disable-dev-shm-usage'],
},
puppeteerClusterOptions: {
concurrency: 1,
},
lighthouseOptions: {
onlyCategories: ['best-practices'],
onlyCategories: ['performance'],
},
server: {
open: false,
site: 'cms.gov',
open: false,
},
scanner: {
include: [
"/",
Expand All @@ -34,19 +37,18 @@ module.exports = {
"/status-indicators",
"/blog"
],
// run lighthouse for each URL 1 time(s)
samples: 3,
// use desktop to scan
// Run Lighthouse for each URL 3 times
samples: 1,
// Use desktop to scan
device: 'desktop',
// enable the throttling mode
// Enable throttling mode
throttle: true,
// increase the maximum number of routes - https://unlighthouse.dev/api/config#scannermaxroutes
// Increase the maximum number of routes
maxRoutes: 500,
// skip the javascript scan
// Do not skip the JavaScript scan
skipJavascript: false,
// use sitemaps - arrays are possible for specific sites https://unlighthouse.dev/api/config#scannersitemap
// Use sitemaps
sitemap: true,
}
},
debug: false,
};