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

Upgrade Codecov #1017

Merged
merged 1 commit into from
May 4, 2024
Merged

Upgrade Codecov #1017

merged 1 commit into from
May 4, 2024

Conversation

ehmicky
Copy link
Collaborator

@ehmicky ehmicky commented May 4, 2024

This upgrades Codecov to the latest version.

Codecov v4 now requires authenticating with a token. It can be found here under "Repository upload token". It must be added as a secret to this repository (I don't have the permissions to do so).

If this worked correctly, re-running the CI should now show that the test coverage are correctly uploaded. Right now, they show "Error: Codecov token not found. Please provide Codecov token with -t flag.". Please note the job passes even when uploading actually failed.

with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: '${{ matrix.os }}, node-${{ matrix.node-version }}'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Allows filtering test coverage per OS and per Node version in the Codecov UI.

@sindresorhus
Copy link
Owner

Codecov v4 now requires authenticating with a token. It can be found here under "Repository upload token". It must be added as a secret to this repository (I don't have the permissions to do so).

Added

@sindresorhus sindresorhus merged commit 32eb757 into main May 4, 2024
12 checks passed
@sindresorhus sindresorhus deleted the upgrade-codecov branch May 4, 2024 18:55
@ehmicky
Copy link
Collaborator Author

ehmicky commented May 4, 2024

It worked! 👍

It apparently fixed some lines of code which were incorrectly previously marked as not covered.

There is only one line of code not covered, which I am looking into now.

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.

None yet

2 participants