File tree Expand file tree Collapse file tree 3 files changed +14
-5
lines changed
Expand file tree Collapse file tree 3 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1616 java-version : 1.8
1717 - name : Run Coverage
1818 run : |
19- chmod +x gradlew
20- ./gradlew testCoverage
19+ mvn test
2120
2221 - name : Add coverage to PR
2322 id : jacoco
Original file line number Diff line number Diff line change 2929 - name : Set up Java for publishing to GitHub Packages
3030 run : mvn --batch-mode deploy
3131 env :
32- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33+ - name : Add coverage to PR
34+ id : jacoco
35+ uses : madrapps/jacoco-report@v1.3
36+ with :
37+ paths : ${{ github.workspace }}/build/reports/jacoco/testCoverage/testCoverage.xml
38+ token : ${{ secrets.GITHUB_TOKEN }}
39+ min-coverage-overall : 40
40+ min-coverage-changed-files : 60
41+ - name : Build with Maven
42+ run : mvn -B package -Pcoverage
Original file line number Diff line number Diff line change 6161 </developers >
6262
6363 <distributionManagement >
64- <snapshotRepository >
64+ <!-- < snapshotRepository>
6565 <id>ossrh</id>
6666 <url>https://oss.sonatype.org/content/repositories/snapshots</url>
67- </snapshotRepository >
67+ </snapshotRepository> -->
6868 <!-- <repository>
6969 <id>ossrh</id>
7070 <url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
You can’t perform that action at this time.
0 commit comments