File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 97
97
98
98
- name : Run build
99
99
shell : bash
100
+ env :
101
+ CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
100
102
run : |
101
103
npm run build
102
104
@@ -219,7 +221,7 @@ jobs:
219
221
shell : bash
220
222
id : tests
221
223
run : |
222
- npm run test -- --reporter=basic --reporter=github-actions --coverage.reporter=text --coverage.reporter=lcovonly
224
+ npm run test -- --reporter=basic --reporter=github-actions --reporter=junit -- coverage.reporter=text --coverage.reporter=lcovonly
223
225
continue-on-error : true
224
226
225
227
- name : Upload coverage results (to Codecov.io)
@@ -231,6 +233,14 @@ jobs:
231
233
plugins : " "
232
234
token : ${{ secrets.CODECOV_TOKEN }}
233
235
236
+ - name : Upload test results to Codecov
237
+ uses : codecov/test-results-action@1b5b448b98e58ba90d1a1a1d9fcb72ca2263be46 # v1
238
+ with :
239
+ disable_search : true
240
+ fail_ci_if_error : true
241
+ files : reports/test-report.xml
242
+ token : ${{ secrets.CODECOV_TOKEN }}
243
+
234
244
- name : Fail if tests failed
235
245
shell : bash
236
246
if : steps.tests.outcome != 'success'
You can’t perform that action at this time.
0 commit comments