Skip to content

Commit f91aa80

Browse files
test-snapshot
1 parent ac20c84 commit f91aa80

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/coverage.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
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

.github/workflows/publish.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,14 @@ jobs:
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

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,10 @@
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>

0 commit comments

Comments
 (0)