Repository navigation
fix(ci): enforce CI gates, scheduled Lighthouse budgets, and page h1 locks (round 2) #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
38dd811
fix(ci): select both browser suites for shared fixture changes
3f62281
fix(ci): enforce lint gate and run full unit suite on Windows
f05ed90
fix(ci): run Lighthouse budgets on a schedule
757d925
fix(test): surface explicit skips in subpath build test
7ec6046
fix(test): remove dead visual regression spec and guard style exclusions
28db80c
fix(a11y): require a single visible page h1 across scanned pages
7fcbdc3
fix(resolve): match nested barrels on win32 path separators
8aa9820
fix(ci): verify preview port ownership and keep single page h1
06cca2d
fix(pages): define bodyHasH1 helper on permalink route
9b922c2
Merge remote-tracking branch 'origin/main' into r2/ci
4cd55b4
chore(ci): format integration sources merged from main
7a1c42a
test(site): cover body-heading fixture in archive and category views
ff88461
fix(a11y): demote post body h1 headings instead of demoting the title
60a0100
test(site): fix Windows file URLs and decrypted TOC numbering after h…
d31b3a6
Merge remote-tracking branch 'origin/main' into r2/ci
33480c5
chore(ci): merge main and resolve biome lint findings from merged sou…
9359d3e
fix(a11y): shift the whole post outline down one level instead of onl…
2de7dab
fix(a11y): demote only body h1 headings and pin the resulting TOC tier
07aebb9
style(biome): wrap demoteBodyH1Headings signature to satisfy biome fo…
28c21f8
test(site): warm dev routes before asserting the static pager
4238301
fix(a11y): scope body h1 demotion to the posts collection and cover M…
9a26980
fix(ci): pin the e2e dev server port and stop leftover background ser…
f7c17af
docs(ci): describe the e2e port policy the config actually enforces
a788941
Merge origin/main into r2/ci
6f680e7
fix(ci): run Node test files one at a time
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| name: Lighthouse budgets | ||
|
|
||
| # F-39: the thresholds in lighthouserc.cjs (CLS, a11y/SEO scores) are real | ||
| # budgets but no workflow executed them. This scheduled/dispatch job runs the | ||
| # production build, serves dist/, and fails when lhci assert reports an error. | ||
| on: | ||
| schedule: | ||
| - cron: "0 3 * * 1" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| lighthouse: | ||
| name: Lighthouse budgets | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 30 | ||
| env: | ||
| CI: true | ||
|
|
||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
|
|
||
| - name: Set up pnpm | ||
| uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0 | ||
| with: | ||
| # Omit the version so the action reads `packageManager` from package.json. | ||
| run_install: false | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | ||
| with: | ||
| node-version: 26.13.0 | ||
| cache: pnpm | ||
| cache-dependency-path: pnpm-lock.yaml | ||
|
|
||
| - name: Install dependencies | ||
| run: pnpm install --frozen-lockfile | ||
|
|
||
| # scripts/lighthouse/run.mjs builds, serves dist/ on 127.0.0.1:4321 and | ||
| # runs `lhci autorun` (collect + assert against lighthouserc.cjs). | ||
| - name: Build and audit production site | ||
| run: pnpm lighthouse |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.