@@ -47,11 +47,17 @@ jobs:
47
47
- name : Build & Test
48
48
run : sbt ++${{ matrix.scala }} clean testWithCoverage
49
49
50
- - name : Upload coverage report (all )
50
+ - name : Upload coverage report (Cobertura )
51
51
52
52
with :
53
- name : coverage-report-${{ matrix.scala }}
54
- path : ${{github.workspace}}/target/scala-${{ matrix.scala }}/coverage-report
53
+ name : cobertura.xml
54
+ path : ${{github.workspace}}/target/scala-${{ matrix.scala }}/coverage-report/cobertura.xml
55
+
56
+ - name : Upload coverage report (HTML)
57
+
58
+ with :
59
+ name : scoverage-report-html
60
+ path : ${{github.workspace}}/target/scala-${{ matrix.scala }}/scoverage-report/
55
61
56
62
optional-build :
57
63
name : Build (Optional)
@@ -86,28 +92,28 @@ jobs:
86
92
- name : Perform Build / Test
87
93
run : sbt ++${{ matrix.scala }} clean compile test
88
94
89
- # coverage:
90
- # name: Coverage Report
91
- # if: ${{ github.event.pull_request }}
92
- # needs: [ build ]
93
- # runs-on: ubuntu-latest
94
- # steps:
95
- # - uses: actions/download-artifact@v3
96
- # with:
97
- # name: cobertura.xml
98
- #
99
- # - name: Analyzing coverage report
100
- # uses: 5monkeys/cobertura-action@master
101
- # with:
102
- # path: cobertura.xml
103
- # only_changed_files: true
104
- # fail_below_threshold: true
105
- # show_missing: true
106
- # show_line: true
107
- # show_branch: true
108
- # show_class_names: true
109
- # link_missing_lines: true
110
- # minimum_coverage: 75
95
+ coverage :
96
+ name : Coverage Report
97
+ if : ${{ github.event.pull_request }}
98
+ needs : [ build ]
99
+ runs-on : ubuntu-latest
100
+ steps :
101
+ - uses : actions/download-artifact@v3
102
+ with :
103
+ name : cobertura.xml
104
+
105
+ - name : Analyzing coverage report
106
+ uses : 5monkeys/cobertura-action@master
107
+ with :
108
+ path : cobertura.xml
109
+ only_changed_files : true
110
+ fail_below_threshold : true
111
+ show_missing : true
112
+ show_line : true
113
+ show_branch : true
114
+ show_class_names : true
115
+ link_missing_lines : true
116
+ minimum_coverage : 75
111
117
112
118
ready-to-merge :
113
119
name : Ready to Merge
0 commit comments