Skip to content

Commit 48ddcae

Browse files
committed
add(#751): add coverage report
1 parent 4226a05 commit 48ddcae

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/test.yml

+22
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- master # Only run when PR is raised for master
1010

11+
permissions:
12+
pull-requests: write
13+
1114
# This ensures for a single PR one job is run in case of multiple runs
1215
concurrency:
1316
group: build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
@@ -21,3 +24,22 @@ jobs:
2124
# Run Tests
2225
- name: Run Tests
2326
run: docker-compose -f "docker-compose.test.yml" up --build
27+
28+
- name: Code Coverage Report
29+
uses: irongut/[email protected]
30+
with:
31+
filename: ./temp/testresults/coverage.xml
32+
badge: true
33+
fail_below_min: true
34+
format: markdown
35+
hide_branch_rate: false
36+
hide_complexity: true
37+
indicators: true
38+
output: both
39+
thresholds: '60 80'
40+
- name: Add Coverage PR Comment
41+
uses: marocchino/sticky-pull-request-comment@v2
42+
if: github.event_name == 'pull_request'
43+
with:
44+
recreate: true
45+
path: code-coverage-results.md

0 commit comments

Comments
 (0)