Skip to content

ci: check links and repeat the E2E tests every week - #250

Merged
nucliweb merged 1 commit into
mainfrom
ci/weekly-checks
Oct 16, 2026
Merged

nucliweb merged 1 commit into
mainfrom
ci/weekly-checks

Conversation

@nucliweb

@nucliweb nucliweb commented Oct 16, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two things break without a change in this repository: links to other sites, and the tests that fail only now and then. A new workflow, weekly.yml, checks both every Monday, and can be run by hand.

  • Links with lychee (lychee.toml), anchors included. The pages in content/ run with --base-url https://webperf-snippets.net, so their root-relative links (/Loading/TTFB#measure-ttfb-sub-parts) are checked against the live site; README, CONTRIBUTING, SKILLS, docs/ and cli/README.md link to files relative to them, which lychee checks on disk. Excluded: local servers and the fictitious domains of the examples, sites that answer bots with 403 or 999 (npm, LinkedIn, w3.org, claude.ai, X), the Chrome Web Store (it redirects to Google's cookie consent in Europe), Cloudinary ids that LazyVideoPlayer turns into URLs, and badges.
  • E2E repeated: the CLI E2E tests 5 times in parallel, so an intermittent test shows up as a failure in one of the runs.
  • The Action workflow also runs every week: it installs the latest CLI on npm and the latest Playwright, which change without a change here, and that is what the users of the Action get.

The first run found broken anchors and an old URL, fixed here: MDN moved its lazy loading and Resource Timing guides and the responsive images section, Nuxt renamed the payload size section, and the Chrome Web Store link moved to chromewebstore.google.com.

A change to lychee.toml or weekly.yml runs the link job on its pull request, so this one shows it working.

Test plan

  • Both lychee passes, with lychee 0.24.2 in Docker: 459 links of the pages and 65 of the repository docs, 0 errors after the fixes (local).
  • lychee reports a missing page (/Loading/Does-Not-Exist, 404) and a missing anchor (/Loading/TTFB#no-such-section) on a probe file, and accepts an anchor that exists (local).
  • The workflows validate against the SchemaStore schema for GitHub workflows with ajv (local).
  • node scripts/generate-llms.js leaves no diff and npm run test:site passes (local).
  • The link job on this pull request: 459 and 65 links, 0 errors; the Action smoke test passes (CI).
  • The E2E repeat runs on the first scheduled run or a manual one, once this is on main.

@vercel

vercel Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
webperf-snippets Ready Ready Preview Oct 16, 2026 8:40pm UTC

@nucliweb
nucliweb merged commit 43fe1d0 into main Oct 16, 2026
6 checks passed
@nucliweb
nucliweb deleted the ci/weekly-checks branch October 16, 2026 20:47

This branch was successfully deployed

1 active deployment
Preview — 692ef29a Deployed Oct 16, 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