Add Lighthouse testing infrastructure for performance and quality audits #157
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements Lighthouse testing based on the nodejs.org implementation to provide automated performance, accessibility, SEO, and best practices audits for the GitHub Pages site.
What's Added
Lighthouse Configuration (
.lighthouserc.json)GitHub Actions Workflow (
.github/workflows/lighthouse.yml)Local Development Support
@lhci/clidependency for local lighthouse testingyarn test-lighthousescript for development workflow.lighthouseci/to.gitignoreto exclude generated reportsUsage
Automated Testing: Lighthouse audits run automatically after each deployment to main branch. Download the HTML reports from the workflow artifacts.
Local Testing:
The generated HTML reports provide detailed insights into:
Fixes #156.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
accounts.google.com/opt/google/chrome/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4575 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/lighthouse.eWlZtJI --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,5706456788514042299,14311980995302636841,262144 --disable-features=AutofillServerCommunication,CalculateNativeWinOcclusion,CertificateTransparencyComponentUpdater,DialMediaRouteProvider,InterestFeedContentSuggestions,MediaRouter,OptimizationHints,PaintHolding,PrivacySandboxSettings4,Translate --variations-seed-version(dns block)/opt/google/chrome/chrome --disable-features=Translate,OptimizationHints,MediaRouter,DialMediaRouteProvider,CalculateNativeWinOcclusion,InterestFeedContentSuggestions,CertificateTransparencyComponentUpdater,AutofillServerCommunication,PrivacySandboxSettings4 --disable-extensions --disable-component-extensions-with-REDACTED-pages --disable-REDACTED-networking --disable-component-update --disable-client-side-phishing-detection --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-default-browser-check --no-first-run --disable-REDACTEDing-occluded-windows --disable-renderer-REDACTEDing --disable-REDACTED-timer-throttling --disable-ipc-flooding-protection --password-store=basic --use-mock-keychain --force-fieldtrials=*BackgroundTracing/default/ --disable-hang-monitor --disable-prompt-on-repost --disable-domain-reliability --propagate-iph-for-testing --remote-debugging-port=46005 --disable-setuid-sandbox --user-data-dir=/tmp/lighthouse.eWlZtJI --no-sandbox --disable-dev-shm-usage --headless=new --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl about:blank(dns block)android.clients.google.com/opt/google/chrome/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4575 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/lighthouse.eWlZtJI --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,5706456788514042299,14311980995302636841,262144 --disable-features=AutofillServerCommunication,CalculateNativeWinOcclusion,CertificateTransparencyComponentUpdater,DialMediaRouteProvider,InterestFeedContentSuggestions,MediaRouter,OptimizationHints,PaintHolding,PrivacySandboxSettings4,Translate --variations-seed-version(dns block)/opt/google/chrome/chrome --disable-features=Translate,OptimizationHints,MediaRouter,DialMediaRouteProvider,CalculateNativeWinOcclusion,InterestFeedContentSuggestions,CertificateTransparencyComponentUpdater,AutofillServerCommunication,PrivacySandboxSettings4 --disable-extensions --disable-component-extensions-with-REDACTED-pages --disable-REDACTED-networking --disable-component-update --disable-client-side-phishing-detection --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-default-browser-check --no-first-run --disable-REDACTEDing-occluded-windows --disable-renderer-REDACTEDing --disable-REDACTED-timer-throttling --disable-ipc-flooding-protection --password-store=basic --use-mock-keychain --force-fieldtrials=*BackgroundTracing/default/ --disable-hang-monitor --disable-prompt-on-repost --disable-domain-reliability --propagate-iph-for-testing --remote-debugging-port=46005 --disable-setuid-sandbox --user-data-dir=/tmp/lighthouse.eWlZtJI --no-sandbox --disable-dev-shm-usage --headless=new --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl about:blank(dns block)clients2.google.com/opt/google/chrome/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4575 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/lighthouse.eWlZtJI --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,5706456788514042299,14311980995302636841,262144 --disable-features=AutofillServerCommunication,CalculateNativeWinOcclusion,CertificateTransparencyComponentUpdater,DialMediaRouteProvider,InterestFeedContentSuggestions,MediaRouter,OptimizationHints,PaintHolding,PrivacySandboxSettings4,Translate --variations-seed-version(dns block)/opt/google/chrome/chrome --disable-features=Translate,OptimizationHints,MediaRouter,DialMediaRouteProvider,CalculateNativeWinOcclusion,InterestFeedContentSuggestions,CertificateTransparencyComponentUpdater,AutofillServerCommunication,PrivacySandboxSettings4 --disable-extensions --disable-component-extensions-with-REDACTED-pages --disable-REDACTED-networking --disable-component-update --disable-client-side-phishing-detection --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-default-browser-check --no-first-run --disable-REDACTEDing-occluded-windows --disable-renderer-REDACTEDing --disable-REDACTED-timer-throttling --disable-ipc-flooding-protection --password-store=basic --use-mock-keychain --force-fieldtrials=*BackgroundTracing/default/ --disable-hang-monitor --disable-prompt-on-repost --disable-domain-reliability --propagate-iph-for-testing --remote-debugging-port=46005 --disable-setuid-sandbox --user-data-dir=/tmp/lighthouse.eWlZtJI --no-sandbox --disable-dev-shm-usage --headless=new --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl about:blank(dns block)safebrowsingohttpgateway.googleapis.com/opt/google/chrome/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4575 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/lighthouse.eWlZtJI --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,5706456788514042299,14311980995302636841,262144 --disable-features=AutofillServerCommunication,CalculateNativeWinOcclusion,CertificateTransparencyComponentUpdater,DialMediaRouteProvider,InterestFeedContentSuggestions,MediaRouter,OptimizationHints,PaintHolding,PrivacySandboxSettings4,Translate --variations-seed-version(dns block)/opt/google/chrome/chrome --disable-features=Translate,OptimizationHints,MediaRouter,DialMediaRouteProvider,CalculateNativeWinOcclusion,InterestFeedContentSuggestions,CertificateTransparencyComponentUpdater,AutofillServerCommunication,PrivacySandboxSettings4 --disable-extensions --disable-component-extensions-with-REDACTED-pages --disable-REDACTED-networking --disable-component-update --disable-client-side-phishing-detection --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-default-browser-check --no-first-run --disable-REDACTEDing-occluded-windows --disable-renderer-REDACTEDing --disable-REDACTED-timer-throttling --disable-ipc-flooding-protection --password-store=basic --use-mock-keychain --force-fieldtrials=*BackgroundTracing/default/ --disable-hang-monitor --disable-prompt-on-repost --disable-domain-reliability --propagate-iph-for-testing --remote-debugging-port=46005 --disable-setuid-sandbox --user-data-dir=/tmp/lighthouse.eWlZtJI --no-sandbox --disable-dev-shm-usage --headless=new --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl about:blank(dns block)www.acls.net/usr/local/bin/node scripts/generate-sitemap.mjs(dns block)www.google.com/opt/google/chrome/chrome --type=utility --utility-sub-type=network.mojom.NetworkService --lang=en-US --service-sandbox-type=none --no-sandbox --disable-dev-shm-usage --use-angle=swiftshader-webgl --mute-audio --crashpad-handler-pid=4575 --enable-crash-reporter=, --noerrdialogs --user-data-dir=/tmp/lighthouse.eWlZtJI --change-stack-guard-on-fork=enable --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,5706456788514042299,14311980995302636841,262144 --disable-features=AutofillServerCommunication,CalculateNativeWinOcclusion,CertificateTransparencyComponentUpdater,DialMediaRouteProvider,InterestFeedContentSuggestions,MediaRouter,OptimizationHints,PaintHolding,PrivacySandboxSettings4,Translate --variations-seed-version(dns block)/opt/google/chrome/chrome --disable-features=Translate,OptimizationHints,MediaRouter,DialMediaRouteProvider,CalculateNativeWinOcclusion,InterestFeedContentSuggestions,CertificateTransparencyComponentUpdater,AutofillServerCommunication,PrivacySandboxSettings4 --disable-extensions --disable-component-extensions-with-REDACTED-pages --disable-REDACTED-networking --disable-component-update --disable-client-side-phishing-detection --disable-sync --metrics-recording-only --disable-default-apps --mute-audio --no-default-browser-check --no-first-run --disable-REDACTEDing-occluded-windows --disable-renderer-REDACTEDing --disable-REDACTED-timer-throttling --disable-ipc-flooding-protection --password-store=basic --use-mock-keychain --force-fieldtrials=*BackgroundTracing/default/ --disable-hang-monitor --disable-prompt-on-repost --disable-domain-reliability --propagate-iph-for-testing --remote-debugging-port=46005 --disable-setuid-sandbox --user-data-dir=/tmp/lighthouse.eWlZtJI --no-sandbox --disable-dev-shm-usage --headless=new --noerrdialogs --ozone-platform=headless --ozone-override-screen-size=800,600 --use-angle=swiftshader-webgl about:blank(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.