From 60cc4118d969774fae0a70ec739edaead491c939 Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Mon, 19 May 2025 08:33:00 +0200 Subject: [PATCH 1/3] Adding badges --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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. From 4c20ea5dac779329d5a7f31dc43417dd90c1a33a Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Mon, 19 May 2025 10:05:59 +0200 Subject: [PATCH 2/3] Adding codecov report --- .github/workflows/gradle.yml | 6 ++++++ opengraphkt/build.gradle.kts | 12 ++++++++++++ 2 files changed, 18 insertions(+) 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 From 42c8accd3d3a95d3c99a8e5ee15ae11210040cbe Mon Sep 17 00:00:00 2001 From: Julien Lengrand-Lambert Date: Mon, 19 May 2025 10:10:19 +0200 Subject: [PATCH 3/3] Adding token --- .github/workflows/gradle.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index c5f0e0f..5788b5d 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -73,4 +73,5 @@ jobs: - 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