-
Notifications
You must be signed in to change notification settings - Fork 24
chore(ci): sparse-checkout #355
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
Conversation
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.
Pull Request Overview
This PR enables sparse checkout of the doc/api directory from the nodejs/node repository to potentially speed up CI workflows.
- Adds a
sparse-checkoutspecification under theactions/checkoutstep - Targets only
doc/apito reduce the amount of checked-out files
Comments suppressed due to low confidence (1)
.github/workflows/generate.yml:57
- Consider adding
fetch-depth: 0to ensure the sparse checkout retrieves the necessary commit history, as shallow clones (default depth: 1) may not support sparse-checkout correctly. For example:
- uses: actions/checkout@v3
with:
fetch-depth: 0
sparse-checkout: |
doc/api
sparse-checkout: |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #355 +/- ##
=======================================
Coverage 72.14% 72.14%
=======================================
Files 117 117
Lines 9992 9992
Branches 597 597
=======================================
Hits 7209 7209
Misses 2780 2780
Partials 3 3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
1a07f12 to
c5f4884
Compare
|
Requesting fast track. |
|
@ovflowd You approved the fast-track, can you approve the PR, i need an infra approval |
(CC @ovflowd)
Let's see if this speeds up the workflows significantly. If not, we can use a shared step, but this may be enough.