Skip to content

Commit abd9db7

Browse files
fix: ensure we emit lcov in build
1 parent 30dfb0a commit abd9db7

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

.github/workflows/build.yml

+2-11
Original file line numberDiff line numberDiff line change
@@ -218,25 +218,16 @@ jobs:
218218
- name: Run tests
219219
shell: bash
220220
id: tests
221-
env:
222-
JEST_JUNIT_OUTPUT_DIR: reports/
223-
JEST_JUNIT_OUTPUT_NAME: unit-tests-report.xml
224221
run: |
225-
npm run test:ci -- --coverage --testLocationInResults --reporters=default --reporters=jest-junit
222+
npm run test -- --reporter=basic --reporter=github-actions --coverage.reporter=text --coverage.reporter=lcovonly
226223
continue-on-error: true
227224

228-
- name: Upload unit-test results
229-
uses: enricomi/publish-unit-test-result-action@567cc7f8dcea3eba5da355f6ebc95663310d8a07 # v2.17.0
230-
with:
231-
check_name: Unit-test results
232-
files: reports/unit-tests-report.xml
233-
234225
- name: Upload coverage results (to Codecov.io)
235226
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
236227
with:
237228
disable_search: true
238229
fail_ci_if_error: true
239-
files: coverage/coverage-final.json
230+
files: coverage/lcov.info
240231
plugins: ""
241232
token: ${{ secrets.CODECOV_TOKEN }}
242233

0 commit comments

Comments
 (0)