-
Notifications
You must be signed in to change notification settings - Fork 5.9k
refactor(ci): split audit from prebuild #3298
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.
One minor change (I think) but otherwise, this looks way better 🙌
.github/workflows/ci.yaml
Outdated
- name: Install dependencies | ||
if: steps.cache-yarn.outputs.cache-hit != 'true' | ||
run: yarn --frozen-lockfile | ||
|
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.
The codecov upload relies on the coverage being generated, which happens when we run the unit tests. So if this is a fresh checkout of the repo, you may need to add a step after install dependencies and before upload code coverage to run the unit tests.
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.
Ah, I'll revert that change if it depends on the unit tests in the first place.
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.
Feel free to add a comment too (apologies, I should have done that when I added it!)
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.
In hindsight it makes perfect sense that you need to run tests to know what coverage for the tests is like - I just didn't notice in a hurry, heh. Pushed before I could add a comment, fingers crossed its fine.
Move dependency audits from prebuild to their own jobs, so that an error does not affect the rest of the build/test process.
Codecov Report
@@ Coverage Diff @@
## main #3298 +/- ##
=======================================
Coverage 57.54% 57.54%
=======================================
Files 24 24
Lines 1279 1279
Branches 290 290
=======================================
Hits 736 736
Misses 441 441
Partials 102 102 Continue to review full report at Codecov.
|
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.
Good work!
Move dependency audits from prebuild to their own jobs, so that an error does not affect the rest of the build/test process.