feat: Add CI workflow to detect broken internal links#963
Merged
bobbyonmagic merged 1 commit intomainfrom Mar 1, 2026
Merged
Conversation
Deploying devops-daily with
|
| Latest commit: |
03b638b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://bd8656da.devops-daily.pages.dev |
| Branch Preview URL: | https://feature-broken-link-checker.devops-daily.pages.dev |
- Created check-broken-links.ts script to scan static build - Scans all HTML files in out/ directory - Validates internal links (href starting with /) - Reports broken links grouped by URL - Added GitHub workflow to run on PRs and main pushes - Added npm script: pnpm check-links - Installed jsdom and @types/jsdom as devDependencies - Removed unused BASE_URL constant Fixes #845
e4be2b4 to
03b638b
Compare
This was referenced Mar 1, 2026
bobbyonmagic
added a commit
that referenced
this pull request
Mar 1, 2026
bobbyonmagic
added a commit
that referenced
this pull request
Mar 1, 2026
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.
Fixes #845
Changes:
scripts/check-broken-links.tsTypeScript script to scan static buildout/directory for internal links.github/workflows/check-links.ymlto run on PRs and main branch pushescheck-linksnpm script:pnpm check-linksjsdomto parse HTML and extract linksHow it works:
pnpm build.htmlfiles in theout/directory/){path}/index.html{path}.html{path}(direct file)Testing:
This helps catch broken navigation early and prevents regressions before deploy.