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

Add CodeCov reporting back after a 3 year hiatus #1788

Merged
merged 13 commits into from
May 15, 2024
Merged

Add CodeCov reporting back after a 3 year hiatus #1788

merged 13 commits into from
May 15, 2024

Conversation

filmaj
Copy link
Contributor

@filmaj filmaj commented May 14, 2024

This should bring codecov reporting back in for node-slack-sdk; woot!

  • Removed nyc as the coverage tool, replaced with c8, it hasn't been updated in 4 years and c8 is essentially a drop-in replacement and maintained. Hat tip to @zimeg as I just followed their lead in the packages/cli-hooks sub-package.
  • Modified GItHub Actions CI to upload code coverage, per sub-project, using CodeCov Flags, when running on latest node, and if the sub-project creates a coverage report. Some projects don't have that level of testing, so first checking for the existence of a coverage report before firing off the CodeCov GH Action.

@filmaj filmaj added the draft label May 14, 2024
@filmaj filmaj self-assigned this May 14, 2024
Copy link

codecov bot commented May 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.58%. Comparing base (84450fd) to head (f96b50a).
Report is 542 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1788      +/-   ##
==========================================
- Coverage   94.41%   88.58%   -5.84%     
==========================================
  Files          12       18       +6     
  Lines         806     6148    +5342     
  Branches      178      297     +119     
==========================================
+ Hits          761     5446    +4685     
- Misses         15      690     +675     
+ Partials       30       12      -18     
Flag Coverage Δ
cli-hooks 95.07% <ø> (?)
eventsapi ?
interactivemessages ?
oauth 76.51% <ø> (?)
socket-mode 59.41% <ø> (?)
web-api 96.48% <ø> (?)
webapi ?
webhook 95.20% <ø> (+7.70%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@filmaj filmaj requested a review from a team May 14, 2024 21:16
@filmaj filmaj removed the draft label May 14, 2024
@filmaj filmaj requested a review from zimeg May 14, 2024 21:16
@filmaj filmaj added semver:patch enhancement M-T: A feature request for new functionality tests M-T: Testing work only labels May 14, 2024
@filmaj filmaj changed the title WIP: codecov reporting Add CodeCov reporting back after a 3 year hiatus May 14, 2024
Copy link
Member

@zimeg zimeg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Excited to see coverage returning. Hi @codecov! 😄 🚀

This all seems to work well and the one question I had was answered in the code, so "LGTM" ✅

@@ -32,15 +32,28 @@ jobs:
- name: Get Development Dependencies
run: npm i
- name: Build and Run Tests in Each Package
working-directory: ${{ matrix.package }}
working-directory: packages/${{ matrix.package }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧠💡

Comment on lines +58 to +59
flags: ${{ matrix.package }}
verbose: true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These flags are neat!

Comment on lines +1 to +2
comment:
layout: "condensed_header, diff, flags"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

packages/logger/package.json Show resolved Hide resolved
@@ -65,6 +65,7 @@
"eslint-plugin-node": "^11.1.0",
"mocha": "^10.2.0",
"shx": "^0.3.4",
"sinon": "^17.0.1"
"sinon": "^17.0.1",
"typescript": "5.4.5"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌 thanks!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Farewell, lerna.json 🫡

@filmaj filmaj merged commit 2c0d6e2 into main May 15, 2024
18 of 19 checks passed
@filmaj filmaj deleted the codecov branch May 15, 2024 00:16
@filmaj filmaj mentioned this pull request May 15, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement M-T: A feature request for new functionality semver:patch tests M-T: Testing work only
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants