File tree Expand file tree Collapse file tree 2 files changed +25
-12
lines changed Expand file tree Collapse file tree 2 files changed +25
-12
lines changed Original file line number Diff line number Diff line change @@ -147,14 +147,14 @@ jobs:
147
147
tar xf /tmp/apache-maven-3.6.3-bin.tar.gz -C /opt
148
148
echo "${M2_HOME}/bin" >> $GITHUB_PATH
149
149
150
- - name : Run cobertura
150
+ - name : Run jacoco report
151
151
shell : bash
152
152
run : |
153
- mvn cobertura:cobertura -Dcobertura. report.format=xml -B
153
+ mvn jacoco:prepare-agent test jacoco: report -B
154
154
155
155
# Generating test coverage report and publishing to Codacy
156
156
- name : Run report coverage
157
157
uses : codacy/codacy-coverage-reporter-action@v1
158
158
with :
159
159
project-token : 4f71427f28dc44a7b762bb14f21094ea
160
- coverage-reports : target/site/cobertura/coverage .xml
160
+ coverage-reports : target/site/jacoco/jacoco .xml
Original file line number Diff line number Diff line change 42
42
</reportSet >
43
43
</reportSets >
44
44
</plugin >
45
+ <plugin >
46
+ <groupId >org.jacoco</groupId >
47
+ <artifactId >jacoco-maven-plugin</artifactId >
48
+ <version >0.8.11</version >
49
+ <reportSets >
50
+ <reportSet >
51
+ <reports >
52
+ <report >report</report >
53
+ </reports >
54
+ </reportSet >
55
+ </reportSets >
56
+ </plugin >
45
57
</plugins >
46
58
</reporting >
47
59
290
302
</configuration >
291
303
</plugin >
292
304
<plugin >
293
- <groupId >org.codehaus.mojo</groupId >
294
- <artifactId >cobertura-maven-plugin</artifactId >
295
- <version >2.7</version >
296
- <configuration >
297
- <formats >
298
- <format >html</format >
299
- <format >xml</format >
300
- </formats >
301
- </configuration >
305
+ <groupId >org.jacoco</groupId >
306
+ <artifactId >jacoco-maven-plugin</artifactId >
307
+ <version >0.8.11</version >
308
+ <executions >
309
+ <execution >
310
+ <goals >
311
+ <goal >prepare-agent</goal >
312
+ </goals >
313
+ </execution >
314
+ </executions >
302
315
</plugin >
303
316
</plugins >
304
317
</build >
You can’t perform that action at this time.
0 commit comments