Skip to content

Commit fa6c95a

Browse files
committed
add coverage summary
1 parent edb0aac commit fa6c95a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/unittest.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,14 @@ jobs:
1919
- name: Install dependencies
2020
run: npm install --force
2121
- name: Run unit tests
22-
run: npm run unittest
22+
run: npm run unittest
23+
- name: Generate coverage report
24+
run: npm run coverage
25+
- name: Coverage report
26+
uses: saschanowak/CloverCodeCoverageSummary@1.1.0
27+
with:
28+
filename: ./coverage/clover.xml
29+
- name: 'Add Code Coverage to Job Summary'
30+
run: |
31+
cat code-coverage-summary.md >> $GITHUB_STEP_SUMMARY
32+
cat code-coverage-details.md >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)