-
Notifications
You must be signed in to change notification settings - Fork 47
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
chore: update CI uploading of codecov #613
Conversation
Switch to github action, and away from npm package inline with codecov docs.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## development #613 +/- ##
===============================================
+ Coverage 54.38% 54.65% +0.26%
===============================================
Files 228 226 -2
Lines 5244 5187 -57
Branches 810 800 -10
===============================================
- Hits 2852 2835 -17
+ Misses 2154 2115 -39
+ Partials 238 237 -1 ☔ View full report in Codecov by Sentry. |
@@ -37,7 +37,7 @@ | |||
"eslint": "eslint --max-warnings 0 \"./src/**/*.ts\" \"./test/**/*.ts\"", | |||
"prettier": "prettier \"*.json\" \"src/**/*.{ts,js,md,json,yml}\" \"test/**/*.{ts,js,md,json,yml}\"", | |||
"clean": "rimraf out .nyc_output coverage *.tsbuildinfo", | |||
"test:codecov": "cross-env TS_NODE_FILES=true nyc --reporter=lcov mocha && 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.
This script is now just about running tests with coverage and the appropriate reporter for codecov.
A follow on github action is responsible for the coverage upload.
@@ -58,7 +58,6 @@ | |||
"@types/sinon": "10.0.6", | |||
"c3-linearization": "0.3.0", | |||
"chai": "4.3.4", | |||
"codecov": "3.8.3", |
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
package is no longer needed as upload is through the github action.
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.
Left one tiny suggestion. Otherwise, looks great!
Thanks.
Co-authored-by: Omar Tawfik <15987992+OmarTawfik@users.noreply.github.com>
Switch to an explicit github action for uploading code coverage files to codecov. We move away from the npm package inline with codecov docs: https://docs.codecov.com/docs/github-2-getting-a-codecov-account-and-uploading-coverage.