Skip to content

Commit 53178b9

Browse files
committed
fix: update test coverage target to jindong-core
1 parent 1deadf0 commit 53178b9

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,24 +63,24 @@ jobs:
6363
- name: Generate Kover Coverage Report
6464
uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f
6565
with:
66-
arguments: koverXmlReport
66+
arguments: :jindong-core:koverXmlReport
6767
- name: Generate Kover HTML Report
6868
uses: gradle/gradle-build-action@ce999babab2de1c4b649dc15f0ee67e6246c994f
6969
with:
70-
arguments: koverHtmlReport
70+
arguments: :jindong-core:koverHtmlReport
7171
- name: Upload Coverage Report
7272
uses: actions/upload-artifact@v4
7373
with:
7474
name: coverage-report
75-
path: jindong/build/reports/kover/html
75+
path: jindong-core/build/reports/kover/html
7676
- name: Add coverage report to PR
7777
id: kover
7878
if: github.event_name == 'pull_request'
7979
uses: mi-kas/kover-report@v1
8080
with:
81-
path: ${{ github.workspace }}/jindong/build/reports/kover/report.xml
81+
path: ${{ github.workspace }}/jindong-core/build/reports/kover/report.xml
8282
token: ${{ secrets.GITHUB_TOKEN }}
83-
title: Test Coverage Report
83+
title: Jindong Core Test Coverage Report
8484
update-comment: true
8585
min-coverage-overall: 0
8686
min-coverage-changed-files: 0

jindong-compose/build.gradle.kts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ plugins {
2323
alias(libs.plugins.kotest)
2424
alias(libs.plugins.ksp)
2525
alias(libs.plugins.binaryCompatibilityValidator)
26-
alias(libs.plugins.kover)
2726
}
2827

2928
apiValidation {
@@ -120,16 +119,3 @@ mavenPublishing {
120119
}
121120
}
122121
}
123-
124-
kover {
125-
reports {
126-
total {
127-
html {
128-
onCheck = true
129-
}
130-
xml {
131-
onCheck = true
132-
}
133-
}
134-
}
135-
}

jindong-core/build.gradle.kts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ plugins {
2222
alias(libs.plugins.kotest)
2323
alias(libs.plugins.ksp)
2424
alias(libs.plugins.binaryCompatibilityValidator)
25+
alias(libs.plugins.kover)
2526
}
2627

2728
apiValidation {
@@ -103,3 +104,16 @@ mavenPublishing {
103104
}
104105
}
105106
}
107+
108+
kover {
109+
reports {
110+
total {
111+
html {
112+
onCheck = true
113+
}
114+
xml {
115+
onCheck = true
116+
}
117+
}
118+
}
119+
}

0 commit comments

Comments
 (0)