diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index de5a041..d9486d8 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,9 +14,9 @@ jobs:
check:
runs-on: macos-latest
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- - uses: actions/setup-java@v4
+ - uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 17
@@ -25,39 +25,3 @@ jobs:
- name: Build and test
run: ./gradlew :library:check
-
- - name: Generate coverage report
- run: ./gradlew :library:jvmTest :library:jacocoCoverageReport
-
- - name: Parse coverage percentage
- id: coverage
- run: |
- REPORT="library/build/reports/jacoco/jacocoCoverageReport/jacocoCoverageReport.xml"
- if [ -f "$REPORT" ]; then
- # JaCoCo: (last occurrence = project total)
- LINE=$(grep 'type="LINE"' "$REPORT" | tail -1)
- LINE_MISSED=$(echo "$LINE" | sed 's/.*missed="\([0-9]*\)".*/\1/')
- LINE_COVERED=$(echo "$LINE" | sed 's/.*covered="\([0-9]*\)".*/\1/')
- TOTAL=$((LINE_COVERED + LINE_MISSED))
- if [ "$TOTAL" -gt 0 ]; then
- PERCENT=$((LINE_COVERED * 100 / TOTAL))
- else
- PERCENT=0
- fi
- else
- PERCENT=0
- fi
- echo "percentage=$PERCENT" >> "$GITHUB_OUTPUT"
-
- - name: Update coverage badge
- if: github.ref == 'refs/heads/main' && github.event_name == 'push'
- uses: schneegans/dynamic-badges-action@v1.7.0
- with:
- auth: ${{ secrets.GIST_SECRET }}
- gistID: ${{ vars.COVERAGE_GIST_ID }}
- filename: coverage.json
- label: coverage
- message: ${{ steps.coverage.outputs.percentage }}%
- valColorRange: ${{ steps.coverage.outputs.percentage }}
- minColorRange: 50
- maxColorRange: 90
diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index 22e7cfa..4e8bb36 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -25,9 +25,9 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- - uses: actions/checkout@v4
+ - uses: actions/checkout@v5
- - uses: actions/setup-java@v4
+ - uses: actions/setup-java@v5
with:
distribution: zulu
java-version: 17
@@ -48,7 +48,7 @@ jobs:
- uses: actions/configure-pages@v5
- - uses: actions/upload-pages-artifact@v3
+ - uses: actions/upload-pages-artifact@v4
with:
path: _site
diff --git a/README.md b/README.md
index 3429e18..0006530 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,8 @@
# TreeLayoutKMP
[](https://github.com/linde9821/TreeLayoutKMP/actions/workflows/ci.yml)
-[](https://github.com/linde9821/TreeLayoutKMP/actions/workflows/ci.yml)
[](https://central.sonatype.com/artifact/io.github.linde9821/treelayout-kmp)
-
-**[Live Demo](https://linde9821.github.io/TreeLayoutKMP/)** · *
+**[Live Demo](https://linde9821.github.io/TreeLayoutKMP/)** ·
*[API Docs](https://linde9821.github.io/TreeLayoutKMP/api/)**
> ⚠️ **This library is under active development and has not reached a stable release yet.**
diff --git a/library/build.gradle.kts b/library/build.gradle.kts
index 43c48eb..5d11924 100644
--- a/library/build.gradle.kts
+++ b/library/build.gradle.kts
@@ -7,7 +7,6 @@ plugins {
alias(libs.plugins.android.kotlin.multiplatform.library)
alias(libs.plugins.vanniktech.mavenPublish)
alias(libs.plugins.dokka)
- jacoco
}
group = "io.github.linde9821"
@@ -125,24 +124,3 @@ mavenPublishing {
}
}
}
-
-tasks.named("jvmTest") {
- finalizedBy("jacocoCoverageReport")
-}
-
-tasks.register("jacocoCoverageReport") {
- dependsOn("jvmTest")
- reports {
- xml.required.set(true)
- html.required.set(true)
- }
- classDirectories.setFrom(
- fileTree("build/classes/kotlin/jvm/main")
- )
- sourceDirectories.setFrom(
- files("src/commonMain/kotlin")
- )
- executionData.setFrom(
- fileTree("build") { include("jacoco/jvmTest.exec") }
- )
-}