Skip to content

Commit

Permalink
build: Undo Gradle Coveralls plugin; attempt to replace with GitHub A…
Browse files Browse the repository at this point in the history
…ctions steps
  • Loading branch information
nhubbard committed May 16, 2024
1 parent 879c22c commit e68b8d4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,20 @@ jobs:
OSS_USER_TOKEN: ${{ secrets.OSS_USER_TOKEN }}
OSS_USER_PASSWORD: ${{ secrets.OSS_USER_PASSWORD }}
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: ./gradlew build coverallsJacoco
run: ./gradlew build
- name: Report Coveralls (Linux)
if: startsWith(runner.os, 'Linux')
run: curl -sL https://coveralls.io/coveralls-linux.tar.gz | tar -xz && ./coveralls report build/reports/kover/report.xml
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report Coveralls (Windows)
if: startsWith(runner.os, 'Windows')
run: curl -sL https://github.com/coverallsapp/coverage-reporter/releases/latest/download/coveralls-windows.zip | zcat > ./coveralls.exe && ./coveralls.exe report build/reports/kover/report.xml
env:
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Report Coveralls (macOS)
if: startsWith(runner.os, 'macOS')
run: |
brew tap coverallsapp/coveralls --quiet
brew install coveralls --quiet
coveralls report build/reports/kover/report.xml
6 changes: 0 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ 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 @@ -250,11 +249,6 @@ 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 e68b8d4

Please sign in to comment.