Skip to content

Commit 3dc58e2

Browse files
committed
(WIP)
1 parent 3177877 commit 3dc58e2

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- uses: gradle/actions/setup-gradle@dbbdc275be76ac10734476cc723d82dfe7ec6eda # v3.4.2
1515
with:
1616
validate-wrappers: true
17-
- run: ./gradlew test jacocoTestReport
17+
- run: ./gradlew test jacocoTestReport jacocoTestCoverageVerification
1818
- uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
1919
with:
2020
name: jacoco-report

build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@ jacoco {
99
toolVersion = "[0.8.13-SNAPSHOT,)"
1010
}
1111

12+
tasks.jacocoTestCoverageVerification {
13+
violationRules {
14+
rule {
15+
limit {
16+
counter = "INSTRUCTION"
17+
value = "MISSEDCOUNT"
18+
maximum = "0".toBigDecimal()
19+
}
20+
}
21+
}
22+
}
23+
1224
repositories {
1325
maven {
1426
url = uri("https://oss.sonatype.org/content/repositories/snapshots")

0 commit comments

Comments
 (0)