Skip to content

Commit

Permalink
GitHub Action: Upload tes coverage to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
tangrufus committed Nov 15, 2024
1 parent 6154fad commit b99a67a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,18 @@ jobs:
- run: go mod download
- run: go mod verify
- run: go test -v -count=1 -race -shuffle=on -coverprofile=coverage.out -covermode=atomic ./...
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.out

codecov:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/download-artifact@v4
with:
name: coverage
- uses: codecov/codecov-action@v4
with:
use_oidc: true
use_oidc: ${{ !(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }}

0 comments on commit b99a67a

Please # to comment.