Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

feat(ci): Upload test coverage to codecov #1399

Merged
merged 1 commit into from
Aug 5, 2020
Merged

feat(ci): Upload test coverage to codecov #1399

merged 1 commit into from
Aug 5, 2020

Conversation

nojnhuh
Copy link
Contributor

@nojnhuh nojnhuh commented Aug 5, 2020

No description provided.

@nojnhuh nojnhuh marked this pull request as ready for review August 5, 2020 15:14
@nojnhuh nojnhuh requested a review from a team as a code owner August 5, 2020 15:14
@nojnhuh nojnhuh merged commit 23d1851 into main Aug 5, 2020
@nojnhuh nojnhuh deleted the upload-coverage branch August 5, 2020 15:15
@@ -161,6 +161,9 @@ jobs:
go-version: 1.14
- name: Test
run: make go-test-coverage
- name: Upload Coverage
if: ${{ success() }}
run: bash <(curl -s https://codecov.io/bash)
Copy link
Contributor

Choose a reason for hiding this comment

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

curlbash, fun :)

@michelleN
Copy link
Contributor

@nojnhuh what does that line do?

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Aug 5, 2020

This is how they describe it in their docs: https://docs.codecov.io/docs/about-the-codecov-bash-uploader

Looks like there may be a native GitHub Actions solution. I'll look into that.

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Aug 5, 2020

Looks like their GitHub action does basically the same thing. https://github.com/codecov/codecov-action/blob/master/index.js#L127

That looks easier to customize though, so we can start using that once we need it. By itself it doesn't look like we gain anything over the plain script.

@michelleN
Copy link
Contributor

ah so we've already exported the CODECOV token?
export CODECOV_TOKEN="token"

@nojnhuh
Copy link
Contributor Author

nojnhuh commented Aug 5, 2020

That's only required for private repos.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants