Skip to content

Commit

Permalink
fix: merging covarage output beforehand
Browse files Browse the repository at this point in the history
  • Loading branch information
nandor-magyar committed Oct 6, 2023
1 parent 2973156 commit 11b28f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/product_builder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 11b28f7

Please sign in to comment.