Skip to content

Commit 141ebc2

Browse files
fix: report tests and bundle to codecov
1 parent 4512fa7 commit 141ebc2

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ jobs:
9797
9898
- name: Run build
9999
shell: bash
100+
env:
101+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
100102
run: |
101103
npm run build
102104
@@ -219,7 +221,7 @@ jobs:
219221
shell: bash
220222
id: tests
221223
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
223225
continue-on-error: true
224226

225227
- name: Upload coverage results (to Codecov.io)
@@ -231,6 +233,14 @@ jobs:
231233
plugins: ""
232234
token: ${{ secrets.CODECOV_TOKEN }}
233235

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+
234244
- name: Fail if tests failed
235245
shell: bash
236246
if: steps.tests.outcome != 'success'

0 commit comments

Comments
 (0)