Repository navigation
ci: check links and repeat the E2E tests every week - #250
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
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.lychee.toml), anchors included. The pages incontent/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/andcli/README.mdlink 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 thatLazyVideoPlayerturns into URLs, and badges.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.tomlorweekly.ymlruns the link job on its pull request, so this one shows it working.Test plan
/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).node scripts/generate-llms.jsleaves no diff andnpm run test:sitepasses (local).main.