Skip to content

Commit 3752862

Browse files
committed
Added jacoco
1 parent c78db4a commit 3752862

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
run: |
2828
./gradlew shadowJar
2929
30+
- name: Code Coverage Sonar
31+
run: |
32+
./gradle test jacocoTestReport sonarqube
33+
3034
- name: Upload Artifacts
3135
uses: actions/upload-artifact@v2
3236
with:

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
id("com.github.johnrengelman.shadow") version "7.1.2"
77
kotlin("jvm") version "1.8.20"
88
application
9+
jacoco
10+
id ("org.sonarqube") version "3.5.0.2730"
911
}
1012

1113
group = "org.example"
@@ -55,6 +57,12 @@ kotlin {
5557
jvmToolchain(11)
5658
}
5759

60+
tasks.jacocoTestReport {
61+
reports {
62+
xml.required.set(true)
63+
}
64+
}
65+
5866

5967
application {
6068
mainClass.set("MainKt")

0 commit comments

Comments
 (0)