File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build
22on : [push, pull_request]
3+
4+ env :
5+ COVERAGE_REPORT_PATH : " target/site/jacoco/jacoco.xml"
6+
37jobs :
48 build :
59 runs-on : ubuntu-latest
1216 distribution : ' adopt'
1317 - name : Build with Maven
1418 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 6363 <plugins >
6464 <plugin >
6565 <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 >
6770 </plugin >
6871 <plugin >
6972 <groupId >org.apache.maven.plugins</groupId >
7477 <target >17</target >
7578 </configuration >
7679 </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 >
7799 </plugins >
78100 </build >
79- </project >
101+ </project >
You can’t perform that action at this time.
0 commit comments