diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 686de72..c5f0e0f 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -68,3 +68,9 @@ jobs: # See: https://github.com/gradle/actions/blob/main/dependency-submission/README.md - name: Generate and submit dependency graph uses: gradle/actions/dependency-submission@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0 + + # Uploads code coverage reports to Covecov + - name: Upload coverage reports + uses: codecov/codecov-action@v5 + with: + files: opengraphkt/build/reports/kover/report.xml \ No newline at end of file diff --git a/opengraphkt/build.gradle.kts b/opengraphkt/build.gradle.kts index e2d93ab..94a62e1 100644 --- a/opengraphkt/build.gradle.kts +++ b/opengraphkt/build.gradle.kts @@ -3,6 +3,8 @@ import com.vanniktech.maven.publish.SonatypeHost plugins { kotlin("jvm") id("com.vanniktech.maven.publish") version "0.32.0" + id("org.jetbrains.kotlinx.kover") version "0.9.1" + } group = "fr.lengrand" @@ -69,3 +71,13 @@ mavenPublishing { } } } + +kover { + reports { + verify { + rule { + minBound(70) + } + } + } +} \ No newline at end of file