Skip to content
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

Merged
merged 2 commits into from
Nov 15, 2024
Merged

Conversation

kanej
Copy link
Member

@kanej kanej commented Nov 14, 2024

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.

Switch to github action, and away from npm package inline with codecov
docs.
@github-actions github-actions bot added the status:ready This issue is ready to be worked on label Nov 14, 2024
Copy link

codecov bot commented Nov 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.65%. Comparing base (22fcbb7) to head (364f8b1).
Report is 15 commits behind head on development.

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.
📢 Have feedback on the report? Share it here.

@@ -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"
Copy link
Member Author

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",
Copy link
Member Author

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.

@kanej kanej requested a review from OmarTawfik November 14, 2024 18:15
Copy link
Contributor

@OmarTawfik OmarTawfik left a 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>
@kanej kanej merged commit f31b73e into development Nov 15, 2024
7 checks passed
@kanej kanej deleted the chore/update-codecov-in-ci branch November 15, 2024 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants