Skip to content

Commit

Permalink
CI: Upload test coverage to Codecov (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
Antoine Gelloz authored Feb 14, 2023
1 parent 646f208 commit 2f127d6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ jobs:
with:
go-version-file: './go.work'
- run: task ${{ matrix.folder }}:tests
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./components/${{ matrix.folder }}
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)

Docker:
runs-on: ubuntu-latest
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ jobs:
cache-dependency-path: 'components/${{ needs.Extract.outputs.service }}/go.sum'
cache: true
- run: task ${{ needs.Extract.outputs.service }}:tests
- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v3
with:
directory: 'components/${{ needs.Extract.outputs.service }}'
name: '${{ needs.Extract.outputs.service }} ${{ needs.Extract.outputs.version }}'
fail_ci_if_error: false # optional (default = false)
verbose: true # optional (default = false)

GoReleaser:
name: GoReleaser
Expand Down

0 comments on commit 2f127d6

Please sign in to comment.