From 0801216a0d147d5f0f7fdf7a4743797bf256ed0d Mon Sep 17 00:00:00 2001 From: usbharu Date: Sun, 15 Sep 2024 23:01:42 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E3=82=AB=E3=83=90=E3=83=AC=E3=83=83?= =?UTF-8?q?=E3=82=B8=E7=8E=87=E3=81=AE=E6=A4=9C=E8=A8=BC=E3=82=92=E3=81=99?= =?UTF-8?q?=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pull-request-merge-check.yml | 6 ++++-- hideout-core/build.gradle.kts | 16 ++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pull-request-merge-check.yml b/.github/workflows/pull-request-merge-check.yml index 06d208aa..c100e253 100644 --- a/.github/workflows/pull-request-merge-check.yml +++ b/.github/workflows/pull-request-merge-check.yml @@ -85,15 +85,17 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} title: Code Coverage update-comment: true - min-coverage-overall: 80 + min-coverage-overall: 50 min-coverage-changed-files: 80 - coverage-counter-type: LINE - name: JUnit Test Report uses: mikepenz/action-junit-report@v4 with: report_paths: '**/TEST-*.xml' + - name: Verify Coverage + run: ./hideout-core/gradlew :hideout-core:koverVerify + lint: name: Lint needs: [ setup ] diff --git a/hideout-core/build.gradle.kts b/hideout-core/build.gradle.kts index 466f2a61..0c09fdee 100644 --- a/hideout-core/build.gradle.kts +++ b/hideout-core/build.gradle.kts @@ -211,23 +211,19 @@ project.gradle.taskGraph.whenReady { kover { currentProject { sources { - excludedSourceSets.addAll( - "aot", "e2eTest", "intTest" - ) + } } reports { + verify{ + rule{ + minBound(50) + } + } filters { 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.boot.context.properties.ConfigurationProperties") packages(