Skip to content

Commit

Permalink
fix: use txtar flag
Browse files Browse the repository at this point in the history
Signed-off-by: gfanton <[email protected]>
  • Loading branch information
gfanton committed Jun 19, 2024
1 parent f50d63f commit 0db83ab
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/test_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,32 @@ jobs:
(set +x; echo 'txtar coverage results:')
go tool covdata percent -i=$TXTARCOVERDIR
# Merge and print combined coverage results
go tool covdata merge -v 1 -i="$GOCOVERDIR,$TXTARCOVERDIR" -o $COVERDIR
(set +x; echo 'final coverage results:')
go tool covdata percent -i=$COVERDIR
# Generate final coverage output
go tool covdata textfmt -v 1 -i=$COVERDIR -o coverage.out || touch coverage.out
go tool covdata textfmt -v 1 -i=$GOCOVERDIR -o gocoverage.out
go tool covdata textfmt -v 1 -i=$TXTARCOVERDIR -o txtarcoverage.out
- name: Upload coverage to Codecov
- name: Upload go coverage to Codecov
working-directory: ${{ inputs.modulepath }}
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.codecov-token }}
verbose: true
fail_ci_if_error: true
flags: ${{ inputs.modulepath }}
disable_search: true
fail_ci_if_error: true
file: ./gocoverage.out
flags: ${{ inputs.modulepath }}
token: ${{ secrets.codecov-token }}
verbose: true

- name: Upload txtar coverage to Codecov
working-directory: ${{ inputs.modulepath }}
uses: codecov/codecov-action@v4
with:
disable_search: true
fail_ci_if_error: true
file: ./txtarcoverage.out
flags: ${{ inputs.modulepath }}/txtar
token: ${{ secrets.codecov-token }}
verbose: true

# TODO: We have to fix race conditions before running this job
# test-with-race:
# runs-on: ubuntu-latest
Expand Down

0 comments on commit 0db83ab

Please sign in to comment.