File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change 88 branches :
99 - master # Only run when PR is raised for master
1010
11+ permissions :
12+ pull-requests : write # for writting comment for coverage
13+
1114# This ensures for a single PR one job is run in case of multiple runs
1215concurrency :
1316 group : build-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2124 # Run Tests
2225 - name : Run Tests
2326 run : docker-compose -f "docker-compose.test.yml" up --build
27+ # Code Coverage
28+ - name : Code Coverage Report
29+ 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
You can’t perform that action at this time.
0 commit comments