Skip to content

Report the Lighthouse check under its literal name when its jobs are skipped - #246

Draft
lwwmanning wants to merge 1 commit into
mainfrom
wm/lighthouse-check-name
Draft

lwwmanning wants to merge 1 commit into
mainfrom
wm/lighthouse-check-name

Conversation

@lwwmanning

Copy link
Copy Markdown
Contributor

This changes the Lighthouse workflow's required check, Lighthouse and axe, and how a manual baseline runs. The audits themselves, axe, the floors in lighthouserc.cjs, and the PR comment are unchanged.

Before, the report job's name was an expression that chose between Lighthouse baseline and Lighthouse and axe. GitHub evaluates a job's name only when the job runs. On a fork PR the audits are skipped, so the job was skipped too, and its check reported under the unevaluated text. The ruleset waited for Lighthouse and axe forever, which is what held #243. After, the job has the literal name and runs on every pull request. It passes a PR whose audits were all skipped because it gets no secrets, and fails any other skip or failure.

The Lighthouse matrix moves to the reusable lighthouse-audit.yml, which lighthouse.yml calls on a PR and the new lighthouse-baseline.yml calls on a manual run. The baseline is a separate workflow so that no run of it has a job named Lighthouse and axe. A skipped job still reports a check under its name, and a skipped required check passes. Run a baseline with gh workflow run lighthouse-baseline.yml --ref <branch>.

tests/unit/required-checks.test.ts reads the workflows and asserts that each check the ruleset requires of a workflow is a literal job name. Its list mirrors the ruleset, so change both together. CLAUDE.md records the rule.

🤖 Generated with Claude Code

…skipped

The `report` job's name was an expression. GitHub evaluates a job's name
only when the job runs, so on a fork PR, where the audits are skipped,
the check reported under the unevaluated text, and the ruleset waited for
"Lighthouse and axe" forever (#243).

The job now has the literal name and runs on every pull request. It passes
a PR whose audits were all skipped because it gets no secrets, and fails
any other skip or failure. The Lighthouse matrix moves to the reusable
lighthouse-audit.yml, and the baseline to lighthouse-baseline.yml, so no
baseline run has a job by the required name: a skipped job still reports
a check, and a skipped required check passes.

tests/unit/required-checks.test.ts asserts that each check the ruleset
requires of a workflow is a literal job name.

Signed-off-by: Will Manning <will@willmanning.io>
@vercel

vercel Bot commented Nov 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
vortex.dev Ready Ready Preview Nov 30, 2026 5:07pm UTC

Request Review

@github-actions

Copy link
Copy Markdown

🔦 Lighthouse audit

URL Profile Perf A11y Best practices SEO
/ desktop 🟢 100 🟢 100 🟢 100 🟢 100
/ mobile 🟢 92 🟢 100 🟢 96 🟢 100
/bench desktop 🟢 100 🟢 100 🟢 100 🟢 100
/bench mobile 🟢 90 🟢 100 🟢 100 🟢 100
/bench/chart/ct.eyJrIjoiQ29tcHJlc3Npb25UaW1lIiwiZGF0YXNldCI6ImFyYWRlIiwiZGF0YXNldF92YXJpYW50IjpudWxsfQ desktop 🟢 100 🟢 100 🟢 100 🟢 100
/bench/chart/ct.eyJrIjoiQ29tcHJlc3Npb25UaW1lIiwiZGF0YXNldCI6ImFyYWRlIiwiZGF0YXNldF92YXJpYW50IjpudWxsfQ mobile 🟢 98 🟢 100 🟢 96 🟢 100
/bench/methodology desktop 🟢 100 🟢 100 🟢 100 🟢 100
/bench/methodology mobile 🟢 96 🟢 100 🟢 100 🟢 100
/blog desktop 🟢 99 🟢 100 🟢 100 🟢 100
/blog mobile 🟢 100 🟢 100 🟢 100 🟢 100
/blog/btrblocks-compressor desktop 🟢 99 🟢 100 🟢 100 🟢 100
/blog/btrblocks-compressor mobile 🟢 99 🟢 100 🟢 100 🟢 100
/faq desktop 🟢 100 🟢 100 🟢 100 🟢 100
/faq mobile 🟢 96 🟢 100 🟢 100 🟢 100

Run 46469712082 · 2026-11-30 17:09 UTC

This branch was successfully deployed

1 active deployment
Preview — d3c0fbae Deployed Nov 30, 2026 by vercel[bot]
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.

1 participant