diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index f7a1ea1..471f629 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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) }}