chore: カバレッジ率の検証をするように

This commit is contained in:
usbharu 2024-09-15 23:01:42 +09:00
parent 75a59d7393
commit 0801216a0d
Signed by: usbharu
GPG Key ID: 95CBCF7046307B77
2 changed files with 10 additions and 12 deletions

View File

@ -85,15 +85,17 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }} token: ${{ secrets.GITHUB_TOKEN }}
title: Code Coverage title: Code Coverage
update-comment: true update-comment: true
min-coverage-overall: 80 min-coverage-overall: 50
min-coverage-changed-files: 80 min-coverage-changed-files: 80
coverage-counter-type: LINE
- name: JUnit Test Report - name: JUnit Test Report
uses: mikepenz/action-junit-report@v4 uses: mikepenz/action-junit-report@v4
with: with:
report_paths: '**/TEST-*.xml' report_paths: '**/TEST-*.xml'
- name: Verify Coverage
run: ./hideout-core/gradlew :hideout-core:koverVerify
lint: lint:
name: Lint name: Lint
needs: [ setup ] needs: [ setup ]

View File

@ -211,23 +211,19 @@ project.gradle.taskGraph.whenReady {
kover { kover {
currentProject { currentProject {
sources { sources {
excludedSourceSets.addAll(
"aot", "e2eTest", "intTest"
)
} }
} }
reports { reports {
verify{
rule{
minBound(50)
}
}
filters { filters {
excludes { excludes {
packages(
"dev.usbharu.hideout.activitypub.domain.exception",
"dev.usbharu.hideout.core.domain.exception",
"dev.usbharu.hideout.core.domain.exception.media",
"dev.usbharu.hideout.core.domain.exception.resource",
"dev.usbharu.hideout.core.domain.exception.resource.local"
)
annotatedBy("org.springframework.context.annotation.Configuration") annotatedBy("org.springframework.context.annotation.Configuration")
annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties") annotatedBy("org.springframework.boot.context.properties.ConfigurationProperties")
packages( packages(