Compare commits

...

13 Commits

Author SHA1 Message Date
Julien Lengrand-Lambert
909979974a Adding badge 2025-05-19 12:29:11 +02:00
Julien Lengrand-Lambert
f1544bf599 With key 2025-05-19 12:26:10 +02:00
Julien Lengrand-Lambert
9799f3eb14 Explicitely calling task 2025-05-19 12:22:13 +02:00
Julien Lengrand-Lambert
ee84878ef1 Separate code coverage job 2025-05-19 11:34:06 +02:00
Julien Lengrand-Lambert
ca31ffa8f7 Not root, current dir 2025-05-19 11:29:49 +02:00
Julien Lengrand-Lambert
45bb727e13 Trying to upload artifact to see 2025-05-19 10:27:13 +02:00
Julien Lengrand-Lambert
bb5919d892 WTF am I doing 2025-05-19 10:25:24 +02:00
Julien Lengrand-Lambert
d819c2346c Before dependency graph? 2025-05-19 10:22:11 +02:00
Julien Lengrand-Lambert
e4410a7b79 Trying without module info 2025-05-19 10:17:10 +02:00
Julien Lengrand-Lambert
42c8accd3d Adding token 2025-05-19 10:10:19 +02:00
Julien Lengrand-Lambert
4c20ea5dac Adding codecov report 2025-05-19 10:05:59 +02:00
Julien Lengrand-Lambert
60cc4118d9 Adding badges 2025-05-19 08:33:00 +02:00
Julien Lengrand-Lambert
aa34916640 Upgrading next version number 2025-05-18 14:56:23 +02:00
3 changed files with 50 additions and 12 deletions

View File

@@ -39,19 +39,40 @@ jobs:
- name: Build with Gradle Wrapper
run: ./gradlew build
# NOTE: The Gradle Wrapper is the default and recommended way to run Gradle (https://docs.gradle.org/current/userguide/gradle_wrapper.html).
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
#
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
# with:
# gradle-version: '8.9'
#
# - name: Build with Gradle 8.9
# run: gradle build
code-coverage:
strategy:
matrix:
java-version: ['23']
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java-version }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
- name: Build with Gradle Wrapper
run: ./gradlew koverXmlReport
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
name: all
path: .
- name: Upload coverage reports
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: opengraphkt/build/reports/kover/report.xml
dependency-submission:
runs-on: ubuntu-latest
permissions:
contents: write
@@ -68,3 +89,4 @@ 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

View File

@@ -1,6 +1,11 @@
# OpenGraphKt
[![build](https://github.com/jlengrand/OpenGraphKt/actions/workflows/gradle.yml/badge.svg)](https://github.com/simplex-chat/jlengrand/OpenGraphKt/workflows/gradle.yml)
![Codecov](https://img.shields.io/codecov/c/github/jlengrand/OpenGraphKt)
![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.

View File

@@ -3,10 +3,11 @@ 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"
version = "0.0.2"
version = "0.0.3-SNAPSHOT"
repositories {
mavenCentral()
@@ -69,3 +70,13 @@ mavenPublishing {
}
}
}
kover {
reports {
verify {
rule {
minBound(70)
}
}
}
}