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

Port codecov to use Codecov's Github Action dedicated wrapper #325

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

magjac
Copy link
Owner

@magjac magjac commented Sep 22, 2024

The immediate reason for doing this is that running codecov failed with:

==> Uploading reports
/home/magjac/d3-graphviz/node_modules/codecov/lib/codecov.js:217
      } else if (result.split('\n').length !== 2) {
                        ^

TypeError: result.split is not a function
    at /home/magjac/d3-graphviz/node_modules/codecov/lib/codecov.js:217:25
    at /home/magjac/d3-graphviz/node_modules/teeny-request/build/src/index.js:217:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.19.1

The Codecov NodeJS Uploader¹ has been deprecated and seems to no longer work. Instead, uploading reports to Codecov using the Codecov CLI² is now recommeded. This change does this using the Codecov GitHub Action³.

¹ https://github.com/codecov/codecov-node
² https://docs.codecov.com/docs/codecov-uploader
³ https://github.com/marketplace/actions/codecov

The immediate reason for doing this is that running codecov failed
with:

```
==> Uploading reports
/home/magjac/d3-graphviz/node_modules/codecov/lib/codecov.js:217
      } else if (result.split('\n').length !== 2) {
                        ^

TypeError: result.split is not a function
    at /home/magjac/d3-graphviz/node_modules/codecov/lib/codecov.js:217:25
    at /home/magjac/d3-graphviz/node_modules/teeny-request/build/src/index.js:217:17
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v18.19.1
```

The Codecov NodeJS Uploader¹ has been deprecated and seems to no
longer work. Instead, uploading reports to Codecov using the Codecov
CLI² is now recommeded. This change does this using the Codecov GitHub
Action³.

¹ https://github.com/codecov/codecov-node
² https://docs.codecov.com/docs/codecov-uploader
³ https://github.com/marketplace/actions/codecov
Copy link

codecov bot commented Sep 22, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (20ea447) to head (5427e85).
Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master      #325   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           39        39           
  Lines         2283      2283           
=========================================
  Hits          2283      2283           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@magjac magjac merged commit c25cca6 into master Sep 22, 2024
6 checks passed
@magjac magjac deleted the port-codecov-to-github-action-dedicated-wrapper branch September 22, 2024 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant