Skip to content

Commit

Permalink
ci: Copy out coverage report before uploading.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaqx0r committed Feb 14, 2024
1 parent 37bfb81 commit 8552f20
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,16 @@ jobs:
run: bazel coverage --explain=explain.out -s --test_env=VERBOSE_COVERAGE=1 --test_env=DISPLAY_LCOV_CMD=1 --test_output=all --combined_report=lcov --instrument_test_targets --nocache_test_results --instrumentation_filter="^//" //...
- name: copy test results into workspace
if: always()
run: cp -Lpr $(bazel info bazel-testlogs)/ test-results
- run: cat explain.out
if: always()
run: |
cp -Lpr $(bazel info bazel-testlogs)/ test-results
cp -Lpr $(bazel into bazel-out)/_coverage/_coverage_report.dat coverage_report.dat
- uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test-results/**/test.xml
- uses: codecov/codecov-action@v4
with:
file: bazel-out/_coverage/_coverage_report.dat
file: coverage_report.dat
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 8552f20

Please sign in to comment.