mirror of https://github.com/usbharu/Hideout.git
chore: カバレッジ率の検証をするように
This commit is contained in:
parent
75a59d7393
commit
0801216a0d
|
@ -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 ]
|
||||||
|
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue