Skip to content

Commit 13b21bc

Browse files
authored
Merge pull request #2 from dotnetprog/feature/AddCodeCov
add codecov
2 parents 3280be0 + e2df6ec commit 13b21bc

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/ci-validation.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,26 @@ jobs:
3333
name: JEST Tests # Name of the check run which will be created
3434
path: ${{ env.broadcastjsWorkingDirectory }}/*-junit.xml # Path to test results
3535
reporter: jest-junit # Format of test results
36-
36+
- name: Publish Tests Results to CodeCov
37+
uses: codecov/test-results-action@v1
38+
with:
39+
fail_ci_if_error: true # optional (default = false)
40+
disable_search: true
41+
files: ./${{ env.broadcastjsWorkingDirectory }}/vitest-junit.xml # optional
42+
flags: broadcast # optional
43+
name: broadcastjs-tests # optional
44+
token: ${{ secrets.CODECOV_TOKEN }} # required
45+
verbose: true # optional (default = false)
46+
- name: Publish Coverage to CodeCov
47+
uses: codecov/codecov-action@v5
48+
with:
49+
fail_ci_if_error: true # optional (default = false)
50+
disable_search: true
51+
files: ./${{ env.broadcastjsWorkingDirectory }}/coverage/lcov.info # optional
52+
flags: broadcast # optional
53+
name: broadcastjs-coverage # optional
54+
token: ${{ secrets.CODECOV_TOKEN }}
55+
verbose: true # optional (default = false)
3756
- name: Create destination folder
3857
run: mkdir -p ${{env.artifactlocation}}
3958
- name: Copy file outputjs into staging directory

0 commit comments

Comments
 (0)