diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 686de72..5788b5d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -68,3 +68,10 @@ 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: + token: ${{ secrets.CODECOV_TOKEN }} + files: opengraphkt/build/reports/kover/report.xml \ No newline at end of file diff --git a/README.md b/README.md index ea90f46..0cf9b8b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # OpenGraphKt +[![build](https://github.com/jlengrand/OpenGraphKt/actions/workflows/gradle.yml/badge.svg)](https://github.com/simplex-chat/jlengrand/OpenGraphKt/workflows/gradle.yml) +![GitHub Release Date](https://img.shields.io/github/release-date/jlengrand/OpenGraphKt) ![Maven Central Version](https://img.shields.io/maven-central/v/fr.lengrand/opengraphkt) +![kotlin-version](https://img.shields.io/badge/kotlin-2.1.0-blue?logo=kotlin) +![GitHub License](https://img.shields.io/github/license/jlengrand/OpenGraphKt) [OpenGraphKt](https://github.com/jlengrand/OpenGraphKt) is a minimalist Kotlin library to work with the [Open Graph tags](https://ogp.me/) protocol. 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