Skip to content

Commit

Permalink
test: Add Coveralls support for GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nhubbard committed May 16, 2024
1 parent fb51fc0 commit 8e42a4b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ jobs:
env:
OSS_USER_TOKEN: ${{ secrets.OSS_USER_TOKEN }}
OSS_USER_PASSWORD: ${{ secrets.OSS_USER_PASSWORD }}
run: ./gradlew build
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./gradlew build coverallsJacoco
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ plugins {
id("org.jetbrains.kotlinx.kover") version "0.7.6"
id("org.jetbrains.kotlinx.benchmark") version "0.4.10"
id("net.thebugmc.gradle.sonatype-central-portal-publisher") version "1.2.3"
id("com.github.nbaztec.coveralls-jacoco") version "1.2.20"
id("ca.solo-studios.sonatype-publish") version "0.1.3"
}

Expand Down Expand Up @@ -249,6 +250,11 @@ kover {
}
}

coverallsJacoco {
reportPath = "build/reports/kover/report.xml"
reportSourceSets = sourceSets.main.get().allSource
}

configurations.all {
resolutionStrategy.eachDependency {
// Resolve Gson vulnerability from Toml4j
Expand Down

0 comments on commit 8e42a4b

Please sign in to comment.