mirror of
https://github.com/jlengrand/OpenGraphKt.git
synced 2026-03-10 08:31:23 +00:00
Uploading Code Coverage info (#20)
* Setting up Kover * Adding CodeCov setup * Adding badge
This commit is contained in:
committed by
GitHub
parent
20f206755c
commit
95069c10a3
49
.github/workflows/gradle.yml
vendored
49
.github/workflows/gradle.yml
vendored
@@ -39,19 +39,40 @@ jobs:
|
|||||||
- name: Build with Gradle Wrapper
|
- name: Build with Gradle Wrapper
|
||||||
run: ./gradlew build
|
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).
|
code-coverage:
|
||||||
# If your project does not have the Gradle Wrapper configured, you can use the following configuration to run Gradle with a specified version.
|
strategy:
|
||||||
#
|
matrix:
|
||||||
# - name: Setup Gradle
|
java-version: ['23']
|
||||||
# uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4.0.0
|
|
||||||
# with:
|
runs-on: ubuntu-latest
|
||||||
# gradle-version: '8.9'
|
permissions:
|
||||||
#
|
contents: read
|
||||||
# - name: Build with Gradle 8.9
|
|
||||||
# run: gradle build
|
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:
|
dependency-submission:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@@ -69,9 +90,3 @@ jobs:
|
|||||||
- name: Generate and submit dependency graph
|
- name: Generate and submit dependency graph
|
||||||
uses: gradle/actions/dependency-submission@8379f6a1328ee0e06e2bb424dadb7b159856a326 # v4.4.0
|
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
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
# OpenGraphKt
|
# OpenGraphKt
|
||||||
|
|
||||||
[](https://github.com/simplex-chat/jlengrand/OpenGraphKt/workflows/gradle.yml)
|
[](https://github.com/simplex-chat/jlengrand/OpenGraphKt/workflows/gradle.yml)
|
||||||
|

|
||||||

|

|
||||||

|

|
||||||

|

|
||||||
|
|||||||
@@ -4,7 +4,6 @@ plugins {
|
|||||||
kotlin("jvm")
|
kotlin("jvm")
|
||||||
id("com.vanniktech.maven.publish") version "0.32.0"
|
id("com.vanniktech.maven.publish") version "0.32.0"
|
||||||
id("org.jetbrains.kotlinx.kover") version "0.9.1"
|
id("org.jetbrains.kotlinx.kover") version "0.9.1"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "fr.lengrand"
|
group = "fr.lengrand"
|
||||||
|
|||||||
Reference in New Issue
Block a user