File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,23 +3,29 @@ name: coverage
33on :
44 push :
55 branches : [ main ]
6+ workflow_dispatch : {}
67
78jobs :
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.
Original file line number Diff line number Diff line change 11plugins {
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
164156task copyJars (type : Copy ) {
165157 duplicatesStrategy = DuplicatesStrategy . INCLUDE
You can’t perform that action at this time.
0 commit comments