1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-14 09:42:09 +00:00
seirdy.one/.lighthouserc.yml
Rohan Kumar 9fdca311c0
CI: Increase CPU slowdown multiplier
builds.sr.ht is a lot faster than my laptop.
2020-12-25 14:25:25 -08:00

60 lines
2 KiB
YAML

---
ci:
assert:
preset: lighthouse:recommended
assertions:
errors-in-console: "off" # false positive for CSP violation
installable-manifest: "off" # not a PWA
offline-start-url: "off" # not a PWA
performance-budget: "error"
render-blocking-resources:
- warn
# the CSS file.
# My site doesn't use JS so it doesn't use the recommended async hack
- maxLength: 1
robots-txt: "off" # Lighthouse is incompatible with a hardened CSP
service-worker: "off" # not a PWA
splash-screen: "off" # not a PWA
themed-omnibox: "off" # antifeature, not a PWA
works-offline: "off" # not a PWA. Use caching.
is-crawlable: "off" # staging server won't be indexed
timing-budget: "off" # buggy; manually use the below assertions instead
canonical: "off" # staging server doesn't have canonical
speed-index:
- warn
- maxNumericValue: 3000
largest-contentful-paint:
- warn
- maxNumericValue: 3000
first-contentful-paint:
- warn
- maxNumericValue: 3000
first-meaningful-paint:
- warn
- maxNumericValue: 3000
total-blocking-time:
- warn
- maxNumericValue: 0
cumulative-layout-shift:
- warn
- maxNumericValue: 0
collect:
method: node
settings:
budgetPath: budget.json
chromeFlags: "--disable-gpu --no-sandbox --disable-extensions --no-first-run --headless"
skipAudits:
- robots-txt
- canonical
throttling:
cpuSlowdownMultiplier: 3 # seems about right on builds.sr.ht
throttlingMethod: devtools
url:
- https://staging.seirdy.one/
- https://staging.seirdy.one/about.html
- https://staging.seirdy.one/2020/11/23/website-best-practices.html
numberOfRuns: 3
upload:
outputDir: lighthouse-reports
reportFilenamePattern: lighthouse-report-%%PATHNAME%%.%%EXTENSION%%
target: filesystem