diff --git a/.github/workflows/product_builder.yaml b/.github/workflows/product_builder.yaml index 5fb9ac567d..43d80db4a9 100644 --- a/.github/workflows/product_builder.yaml +++ b/.github/workflows/product_builder.yaml @@ -230,6 +230,10 @@ jobs: - go_test - go_integration steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + - name: Install coverage merger + run: go install go.shabbyrobe.org/gocovmerge/cmd/gocovmerge@latest - name: Download integration test results from artifacts uses: actions/download-artifact@v3 with: @@ -238,10 +242,12 @@ jobs: uses: actions/download-artifact@v3 with: name: golang-unit-coverage + - name: Merge coverage + run: gocovmerge ./builder.cov ./cli.cov ./coverage.cov ./crane.cov ./dagent.cov ./internal.cov ./unit.cov > ./merged.cov - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v3 with: - files: "*.cov" + files: ./merged.cov name: golang-coverage fail_ci_if_error: true verbose: true