Skip to content

Commit 7a5a66c

Browse files
ci: migrate to codecov-action for test results (#91)
1 parent 9f62c5e commit 7a5a66c

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci-tests.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
shell: bash
108108
run: npm test
109109

110-
- name: Upload test results to Codecov
110+
- name: Upload coverage
111111
# any except canceled or skipped
112112
if: >-
113113
always() &&
@@ -118,15 +118,16 @@ jobs:
118118
steps.jest.outcome == 'failure'
119119
) &&
120120
startsWith(github.repository, 'LizardByte/')
121-
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
121+
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
122122
with:
123123
fail_ci_if_error: true
124-
files: ./junit-python.xml,./junit.xml
124+
files: ./coverage/python-coverage.xml,./coverage/coverage-final.json
125125
flags: ${{ runner.os }}
126+
report_type: coverage
126127
token: ${{ secrets.CODECOV_TOKEN }}
127128
verbose: true
128129

129-
- name: Upload coverage to Codecov
130+
- name: Upload test results
130131
# any except canceled or skipped
131132
if: >-
132133
always() &&
@@ -140,7 +141,8 @@ jobs:
140141
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
141142
with:
142143
fail_ci_if_error: true
143-
files: ./coverage/python-coverage.xml,./coverage/coverage-final.json
144+
files: ./junit-python.xml,./junit.xml
144145
flags: ${{ runner.os }}
146+
report_type: test_results
145147
token: ${{ secrets.CODECOV_TOKEN }}
146148
verbose: true

0 commit comments

Comments
 (0)