All checks were successful
Linting and checking code / get-version (push) Successful in 7s
Build and deploy preview site / check-tag (push) Successful in 3s
Linting and checking code / astro-check (push) Successful in 18s
Build and deploy preview site / checking (push) Successful in 14s
Build and deploy preview site / build-site (push) Successful in 2m35s
Build and deploy preview site / run-unlighthouse (push) Successful in 27s
Build and deploy preview site / auto-deploy-dockge (push) Successful in 51s
Build and deploy preview site / create-release (push) Successful in 1m1s
36 lines
926 B
TypeScript
36 lines
926 B
TypeScript
export default async () => {
|
|
const sitemap = await (await fetch('http://localhost:8081/sitemap-0.xml')).text()
|
|
const urls = sitemap.match(/<loc>(.*?)<\/loc>/g)!.map(
|
|
(loc) => loc.replace(/<\/?loc>/g, '').replace(/https:\/\/firq.dev/g, 'http://localhost:8081')
|
|
)
|
|
return {
|
|
lighthouseOptions: {
|
|
throttlingMethod: 'devtools',
|
|
throttling: {
|
|
cpuSlowdownMultiplier: 4,
|
|
requestLatencyMs: 150,
|
|
downloadThroughputKbps: 1638.4,
|
|
uploadThroughputKbps: 1638.4,
|
|
},
|
|
screenEmulation: {
|
|
width: 412,
|
|
height: 823,
|
|
deviceScaleFactor: 1.75,
|
|
},
|
|
},
|
|
puppeteerOptions: {
|
|
args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
|
},
|
|
ci: {
|
|
budget: 50,
|
|
buildStatic: true,
|
|
},
|
|
scanner: {
|
|
sitemap: true,
|
|
dynamicSampling: false,
|
|
samples: 3,
|
|
},
|
|
outputPath: 'unlighthouse-reports',
|
|
urls
|
|
}
|
|
}
|