File tree 1 file changed +24
-0
lines changed
1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 31
31
- name : Run checks
32
32
run : make get-deps check
33
33
34
+ - name : Convert go coverage to corbetura format
35
+ run : |
36
+ go install github.com/boumenot/gocover-cobertura@latest
37
+ gocover-cobertura -by-files < test/coverage.out > test/coverage.xml
38
+
39
+ - name : Generate code coverage report
40
+ uses : irongut/CodeCoverageSummary@v1.3.0
41
+ with :
42
+ filename : test/coverage.xml
43
+ badge : false
44
+ fail_below_min : false
45
+ format : markdown
46
+ hide_branch_rate : false
47
+ hide_complexity : true
48
+ indicators : true
49
+ output : both
50
+ thresholds : ' 60 80'
51
+
52
+ - name : Add Coverage PR Comment
53
+ uses : marocchino/sticky-pull-request-comment@v2
54
+ with :
55
+ recreate : true
56
+ path : code-coverage-results.md
57
+
34
58
test :
35
59
name : Docker tests
36
60
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments