Skip to content

Commit 8552eea

Browse files
committed
Remove coveralls plugin and use github action instead
Signed-off-by: Max Lambrecht <maxlambrecht@gmail.com>
1 parent ca64be7 commit 8552eea

2 files changed

Lines changed: 13 additions & 15 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,29 @@ name: coverage
33
on:
44
push:
55
branches: [ main ]
6+
workflow_dispatch: {}
67

78
jobs:
89
create-coverage:
9-
1010
runs-on: ubuntu-latest
11-
1211
steps:
1312
- uses: actions/checkout@v6
1413
- name: Set up JDK
1514
uses: actions/setup-java@v5
1615
with:
1716
java-version: '17'
18-
distribution: 'adopt'
19-
- name: Generate and upload coverage report
20-
env:
21-
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
22-
run: ./gradlew jacocoTestReport coveralls
17+
distribution: 'temurin'
18+
19+
- name: Generate JaCoCo report
20+
run: ./gradlew test jacocoTestReport
21+
22+
- name: Upload coverage to Coveralls
23+
uses: coverallsapp/github-action@v2
24+
with:
25+
github-token: ${{ secrets.GITHUB_TOKEN }}
26+
file: build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml
27+
format: jacoco
28+
2329
- name: Cleanup Gradle Cache
2430
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
2531
# Restoring these files from a GitHub Actions cache might cause problems for future builds.

build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
plugins {
2-
id 'com.github.kt3k.coveralls' version '2.12.2'
32
id 'com.google.osdetector' version '1.7.3'
43
id 'jvm-test-suite'
54
id 'com.vanniktech.maven.publish' version '0.35.0'
@@ -153,13 +152,6 @@ jacocoTestReport.dependsOn {
153152
}
154153
}
155154

156-
coveralls {
157-
jacocoReportPath 'build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml'
158-
sourceDirs = ['java-spiffe-core/src/main/java',
159-
'java-spiffe-helper/src/main/java',
160-
'java-spiffe-provider/src/main/java']
161-
}
162-
163155
// copy submodules jars to a common folder for deploy
164156
task copyJars(type: Copy) {
165157
duplicatesStrategy = DuplicatesStrategy.INCLUDE

0 commit comments

Comments
 (0)