Skip to content

Commit 6fc347f

Browse files
committed
switch coveralls plugin
1 parent 1280716 commit 6fc347f

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,9 @@ jobs:
191191
192192
- name: Coverage report
193193
run: |
194-
./gradlew clean test jacocoTestReport coveralls -Ph3UseDocker=false -Ph3TestSystem=true -Ph3AdditionalArgLine="-Djava.library.path=./src/main/resources/linux-x64/" -PrepoToken=$COVERALLS_SECRET -PpullRequest=${{ github.event.number }}
194+
./gradlew clean test jacocoTestReport coverallsJacoco -Ph3UseDocker=false -Ph3TestSystem=true -Ph3AdditionalArgLine="-Djava.library.path=./src/main/resources/linux-x64/"
195195
env:
196-
CI_NAME: github
197-
COVERALLS_SECRET: ${{ secrets.GITHUB_TOKEN }}
196+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
198197

199198
tests-use-built-artifacts:
200199
name: Java (Built Artifacts) ${{ matrix.java-version }} ${{ matrix.os }}

build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
jcenter()
5+
}
6+
}
7+
18
plugins {
29
id 'java'
310
id 'java-library'
@@ -7,7 +14,7 @@ plugins {
714
// id 'com.github.spotbugs' version '5.2.1'
815
// TODO: Requires Java 11
916
// id 'com.diffplug.spotless' version '6.25.0'
10-
id 'com.github.kt3k.coveralls' version '2.12.2'
17+
id 'com.github.nbaztec.coveralls-jacoco' version '1.2.20'
1118
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
1219
}
1320

@@ -101,10 +108,6 @@ jacocoTestReport {
101108
}
102109
}
103110

104-
coveralls {
105-
jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
106-
}
107-
108111
jar {
109112
dependsOn buildH3
110113
from sourceSets.main.resources

0 commit comments

Comments
 (0)