File tree 2 files changed +33
-2
lines changed
2 files changed +33
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Build
2
2
on : [push, pull_request]
3
+
4
+ env :
5
+ COVERAGE_REPORT_PATH : " target/site/jacoco/jacoco.xml"
6
+
3
7
jobs :
4
8
build :
5
9
runs-on : ubuntu-latest
12
16
distribution : ' adopt'
13
17
- name : Build with Maven
14
18
run : mvn --batch-mode --update-snapshots verify
19
+ - name : Upload coverage to codecov
20
+ uses : codecov/codecov-action@v3
21
+ with :
22
+ files : " ${{ env.REPORT_NAME }}"
23
+ fail_ci_if_error : true
Original file line number Diff line number Diff line change 63
63
<plugins >
64
64
<plugin >
65
65
<artifactId >maven-surefire-plugin</artifactId >
66
- <version >2.22.2</version >
66
+ <version >3.2.5</version >
67
+ <configuration >
68
+ <forkNode implementation =" org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory" />
69
+ </configuration >
67
70
</plugin >
68
71
<plugin >
69
72
<groupId >org.apache.maven.plugins</groupId >
74
77
<target >17</target >
75
78
</configuration >
76
79
</plugin >
80
+ <plugin >
81
+ <groupId >org.jacoco</groupId >
82
+ <artifactId >jacoco-maven-plugin</artifactId >
83
+ <version >0.8.12</version >
84
+ <executions >
85
+ <execution >
86
+ <goals >
87
+ <goal >prepare-agent</goal >
88
+ </goals >
89
+ </execution >
90
+ <execution >
91
+ <id >generate-code-coverage-report</id >
92
+ <phase >test</phase >
93
+ <goals >
94
+ <goal >report</goal >
95
+ </goals >
96
+ </execution >
97
+ </executions >
98
+ </plugin >
77
99
</plugins >
78
100
</build >
79
- </project >
101
+ </project >
You can’t perform that action at this time.
0 commit comments