Skip to content

Commit d97c5c9

Browse files
committed
ci: use codecov/test-results-action for test analytics upload
The unified codecov/codecov-action@v6 with 'report_type: test_results' doesn't actually invoke the right Codecov CLI subcommand — its codecov.sh hardcodes CC_RUN_CMD=upload-coverage, so test-results files were uploaded as coverage and never showed up in the Tests tab (just '0 tests, no test results found'). Switch to the dedicated codecov/test-results-action@v1.2.1, which explicitly runs 'do-upload --report-type test_results'. Yes, this action carries a 'deprecate' marker, but it's the only path that works today — the Codecov docs themselves still recommend it, and the deprecation is forward-looking for whenever codecov-action v6+ properly dispatches on report_type.
1 parent ab782a9 commit d97c5c9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,9 @@ jobs:
4949

5050
- name: Upload test results to Codecov
5151
if: always()
52-
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
52+
uses: codecov/test-results-action@6ba3fdeec616fb91fd6a389b788a2366835a0fa2 # v1.2.1
5353
with:
5454
files: target/nextest/applet/junit.xml,target/nextest/standalone/junit.xml
55-
report_type: test_results
5655
token: ${{ secrets.CODECOV_TOKEN }}
5756
fail_ci_if_error: false
5857

0 commit comments

Comments
 (0)