File tree Expand file tree Collapse file tree 3 files changed +9
-35
lines changed Expand file tree Collapse file tree 3 files changed +9
-35
lines changed Original file line number Diff line number Diff line change 38
38
39
39
- name : Run checks and generate report
40
40
run : |
41
- ./gradlew clean check
42
- ./gradlew jacocoTestReport
41
+ ./gradlew clean check koverXmlReport
43
42
44
43
- name : Upload coverage report to Codecov
45
44
uses : codecov/codecov-action@v4
Original file line number Diff line number Diff line change @@ -14,4 +14,7 @@ test.csv
14
14
.idea /*
15
15
16
16
# Ignore yarn.lcok
17
- kotlin-js-store /yarn.lock
17
+ kotlin-js-store /yarn.lock
18
+
19
+ # Kotlin 2.0
20
+ .kotlin /
Original file line number Diff line number Diff line change 1
1
plugins {
2
- java
3
- kotlin(" multiplatform" ) version " 1.7.21"
2
+ kotlin(" multiplatform" ) version " 2.1.0"
4
3
id(" org.jetbrains.dokka" ).version(" 1.7.20" )
4
+ id(" org.jetbrains.kotlinx.kover" ) version " 0.9.0"
5
5
`maven- publish`
6
6
signing
7
- jacoco
8
7
}
9
8
10
9
group = " com.jsoizo"
@@ -38,7 +37,7 @@ kotlin {
38
37
artifact(dokkaJar)
39
38
}
40
39
}
41
- js( BOTH ) {
40
+ js {
42
41
browser {
43
42
}
44
43
nodejs {
@@ -129,31 +128,4 @@ publishing {
129
128
130
129
signing {
131
130
sign(publishing.publications)
132
- }
133
-
134
- // ///////////////////////////////////////
135
- // Jacoco setting //
136
- // ///////////////////////////////////////
137
- jacoco {
138
- toolVersion = " 0.8.8"
139
- }
140
- tasks.jacocoTestReport {
141
- val coverageSourceDirs = arrayOf(
142
- " commonMain/src" ,
143
- " jvmMain/src"
144
- )
145
- val classFiles = File (" ${buildDir} /classes/kotlin/jvm/" )
146
- .walkBottomUp()
147
- .toSet()
148
- classDirectories.setFrom(classFiles)
149
- sourceDirectories.setFrom(files(coverageSourceDirs))
150
- additionalSourceDirs.setFrom(files(coverageSourceDirs))
151
-
152
- executionData
153
- .setFrom(files(" ${buildDir} /jacoco/jvmTest.exec" ))
154
-
155
- reports {
156
- xml.required.set(true )
157
- html.required.set(false )
158
- }
159
- }
131
+ }
You can’t perform that action at this time.
0 commit comments