Skip to content

Commit 6397daa

Browse files
build(deps): use codecov-action for test results (#577)
1 parent 9895fdb commit 6397daa

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

.github/workflows/__call-ci-node.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,30 +86,32 @@ jobs:
8686
- name: Publish (dry run)
8787
run: npm publish --dry-run
8888

89-
- name: Upload test results to Codecov
89+
- name: Upload test coverage
9090
# any except canceled or skipped
9191
if: >-
9292
always() &&
9393
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
9494
startsWith(github.repository, 'LizardByte/')
95-
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
95+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
9696
with:
97+
disable_search: true
9798
fail_ci_if_error: true
98-
files: ./junit.xml,!./cache
99+
files: ./coverage/coverage-final.json
100+
report_type: coverage
99101
token: ${{ secrets.CODECOV_TOKEN }}
100102
verbose: true
101103

102-
- name: Upload test coverage to Codecov
104+
- name: Upload test results
103105
# any except canceled or skipped
104106
if: >-
105107
always() &&
106108
(steps.test.outcome == 'success' || steps.test.outcome == 'failure') &&
107109
startsWith(github.repository, 'LizardByte/')
108110
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
109111
with:
110-
disable_search: true
111112
fail_ci_if_error: true
112-
files: ./coverage/coverage-final.json
113+
files: ./junit.xml,!./cache
114+
report_type: test_results
113115
token: ${{ secrets.CODECOV_TOKEN }}
114116
verbose: true
115117

0 commit comments

Comments
 (0)