Skip to content

Conversation

shivambisen
Copy link
Contributor

Summary of Changes

This pull request introduces a new, automated Lighthouse CI workflow that runs on every pull request. The workflow helps contributors and reviewers monitor website performance, accessibility, SEO, and best practices on a per-page basis, preventing performance regressions before merging into the main codebase.

The workflow is configurable ( it will only run when explicitly requested pages with trigger word)


How to Use This Feature

To trigger a Lighthouse CI audit:

  1. Add the phrase Lighthouse Test to your PR body.
  2. Include a list of the pages you want to audit, each on a separate line.

Example PR Body:

This PR updates the adopters and blog pages.

Lighthouse Test
/
/adopters/
/blog/
/get-involved/

Workflow Behavior

  • If Lighthouse Test is present in the PR body:

    • Runs a full Gatsby build once.
    • Starts a local static server.
    • Runs Lighthouse audits only on the specified paths.
    • Generates a detailed Lighthouse report with a link provided in the workflow logs.
  • If Lighthouse Test is not present:

    • Lighthouse-specific steps are skipped.
    • Workflow completes very quickly (5-6 seconds)

closes #716

Copy link

netlify bot commented Aug 13, 2025

👷 Deploy Preview for cilium processing.

Name Link
🔨 Latest commit 577ac25
🔍 Latest deploy log https://app.netlify.com/projects/cilium/deploys/689c3f7d2287170008eb5088

Copy link

netlify bot commented Aug 13, 2025

Deploy Preview for cilium ready!

Name Link
🔨 Latest commit 5ff31d0
🔍 Latest deploy log https://app.netlify.com/projects/cilium/deploys/689c6a962f39c6000861c870
😎 Deploy Preview https://deploy-preview-732--cilium.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@shivambisen
Copy link
Contributor Author

@xmulligan @paularah , could you please review this when you have a moment?

@paularah
Copy link
Contributor

Hi @shivambisen, for a feature like this, you should get the conversation rolling first in the issue, before opening a PR.

This is a nice to have feature but I am not sure we absolutely need this. I'll wait to hear from other people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Google Lighthouse audits to CI
2 participants