ci: run Lighthouse during pull requests - #435
Open
chrstph-dvx wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an automated Lighthouse “user-flow” run to pull requests, producing a summarized report (JSON + Markdown) and posting/updating a PR comment with the results. It integrates the new reporting script into the existing monorepo tooling and CI workflow.
Changes:
- Added a
generateLighthouseReportscript (Puppeteer + Lighthouse) that runs multiple flows, parses/averages results, diffs against a committed baseline, and formats a PR-ready Markdown report. - Introduced a new GitHub Actions workflow to run Lighthouse on PRs, publish results to the job summary, and upsert a PR comment.
- Improved bridge token selection automation by adding an
aria-labelto token rows; updated repo scripts and ignore rules for generated Lighthouse artifacts.
Reviewed changes
Copilot reviewed 13 out of 15 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Adds Lighthouse/Puppeteer/tsx dependency resolution updates. |
| packages/scripts/src/generateLighthouseReport/types.ts | Defines lightweight Lighthouse flow/result types used by parsing/reporting code. |
| packages/scripts/src/generateLighthouseReport/parseLighthouseReports.ts | Parses flow JSON, averages scores/metrics across runs, and produces a summary. |
| packages/scripts/src/generateLighthouseReport/parseLighthouseReports.test.ts | Adds unit tests for parsing/compare/format behavior. |
| packages/scripts/src/generateLighthouseReport/lighthouseBaseline.json | Adds a baseline summary used for result diffs. |
| packages/scripts/src/generateLighthouseReport/index.ts | Implements report generation orchestration, file outputs, and optional baseline updates. |
| packages/scripts/src/generateLighthouseReport/formatLighthouseReport.ts | Formats summary + baseline + diff into a Markdown report for CI/PR comments. |
| packages/scripts/src/generateLighthouseReport/executeLighthouse.ts | Runs a Lighthouse user flow via Puppeteer and writes per-run reports. |
| packages/scripts/src/generateLighthouseReport/compareLighthouseReports.ts | Computes numeric deltas between current summary and baseline. |
| packages/scripts/src/generateLighthouseReport/cli.ts | Adds a CLI entrypoint for running the report generator (and updating baseline). |
| packages/scripts/package.json | Adds generate-lighthouse-report script and Lighthouse/Puppeteer/tsx dependencies. |
| packages/arb-token-bridge-ui/src/components/TransferPanel/TokenRow.tsx | Adds an aria-label to token selection buttons to support automation/accessibility. |
| package.json | Adds a root lighthouse:ci script to invoke the scripts package generator. |
| .gitignore | Ignores generated lighthouse-reports/ output directory. |
| .github/workflows/lighthouse.yml | Adds a PR workflow that runs Lighthouse, publishes a summary, and updates a PR comment. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| '<details open>', | ||
| '<summary>🗼 Lighthouse user-flow results</summary>', | ||
| '', | ||
| 'Results are the mean of three sequential desktop runs. Δ is result minus baseline.', |
chrstph-dvx
force-pushed
the
perf/1-lighthouse-setup
branch
from
July 31, 2026 13:24
f904a78 to
14c36cf
Compare
chrstph-dvx
force-pushed
the
perf/1-lighthouse-setup
branch
from
July 31, 2026 13:51
14c36cf to
dc5fcd9
Compare
chrstph-dvx
force-pushed
the
perf/1-lighthouse-setup
branch
from
July 31, 2026 15:45
dc5fcd9 to
9bced91
Compare
chrstph-dvx
force-pushed
the
perf/1-lighthouse-setup
branch
from
July 31, 2026 15:55
9bced91 to
479d90d
Compare
chrstph-dvx
force-pushed
the
perf/1-lighthouse-setup
branch
from
July 31, 2026 16:04
479d90d to
9c7e4e2
Compare
Contributor
🗼 Lighthouse user-flow resultsResults are the mean of three sequential desktop runs. Δ is result minus baseline.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.