We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c78db4a commit 3752862Copy full SHA for 3752862
.github/workflows/main.yml
@@ -27,6 +27,10 @@ jobs:
27
run: |
28
./gradlew shadowJar
29
30
+ - name: Code Coverage Sonar
31
+ run: |
32
+ ./gradle test jacocoTestReport sonarqube
33
+
34
- name: Upload Artifacts
35
uses: actions/upload-artifact@v2
36
with:
build.gradle.kts
@@ -6,6 +6,8 @@ plugins {
6
id("com.github.johnrengelman.shadow") version "7.1.2"
7
kotlin("jvm") version "1.8.20"
8
application
9
+ jacoco
10
+ id ("org.sonarqube") version "3.5.0.2730"
11
}
12
13
group = "org.example"
@@ -55,6 +57,12 @@ kotlin {
55
57
jvmToolchain(11)
56
58
59
60
+tasks.jacocoTestReport {
61
+ reports {
62
+ xml.required.set(true)
63
+ }
64
+}
65
66
67
application {
68
mainClass.set("MainKt")
0 commit comments