-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
ci: add link verification step to PR workflow #9267
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
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit 2e14587.
☁️ Nx Cloud last updated this comment at |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9267 +/- ##
=======================================
Coverage 45.37% 45.37%
=======================================
Files 207 207
Lines 8276 8276
Branches 1871 1862 -9
=======================================
Hits 3755 3755
Misses 4080 4080
Partials 441 441 🚀 New features to boost your workflow:
|
@@ -29,7 +29,7 @@ | |||
"prettier:write": "pnpm run prettier --write", | |||
"docs:generate": "node scripts/generateDocs.js", | |||
"cipublish": "node scripts/publish.js", | |||
"verify-links": "node scripts/verify-links.ts" | |||
"verify-links": "pnpm tsx scripts/verify-links.ts" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should use tsx
because the node version(22.12.0) defined in .nvmrc is lower than the one that supports TypeScript natively.
@@ -35,6 +35,8 @@ jobs: | |||
main-branch-name: main | |||
- name: Run Checks | |||
run: pnpm run test:pr --parallel=3 | |||
- name: Verify Links |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this should be added to autofix.yml
either instead or in addition to here. Autofix will commit the fixes to the branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this verify-links.ts
only detects broken links but does not automatically fix them, I think it's more appropriate to keep it in ci.yml
rather than autofix.yml
. But please feel free to share if you had something else in mind
Uh oh!
There was an error while loading. Please reload this page.