File tree Expand file tree Collapse file tree 4 files changed +41
-2
lines changed Expand file tree Collapse file tree 4 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 50
50
distribution : ' temurin'
51
51
java-version : ' 21'
52
52
53
- - name : Generate jOOQ Classes and Build
54
- run : ./gradlew clean generateJooq build --info --stacktrace
53
+ - name : Build skeletonBatch
54
+ run : |
55
+ cd skeletonBatch
56
+ ../gradlew clean generateJooq build jacocoTestReport --info --stacktrace
57
+
58
+ - name : Build dbAndCsvBatch
59
+ run : |
60
+ cd dbAndCsvBatch
61
+ ../gradlew clean generateJooq build jacocoTestReport --info --stacktrace
62
+
63
+ - name : Upload coverage to Codecov for skeletonBatch
64
+ uses : codecov/codecov-action@v4
65
+ with :
66
+ files : skeletonBatch/build/reports/jacoco/test/jacocoTestReport.xml
67
+
68
+ - name : Upload coverage to Codecov for dbAndCsvBatch
69
+ uses : codecov/codecov-action@v4
70
+ with :
71
+ files : dbAndCsvBatch/build/reports/jacoco/test/jacocoTestReport.xml
72
+
73
+ - name : Upload coverage to Codecov
74
+ uses : codecov/codecov-action@v4
75
+ with :
76
+ files : ./*/build/reports/jacoco/test/jacocoTestReport.xml
55
77
56
78
- name : Archive Test Reports
57
79
if : always()
Original file line number Diff line number Diff line change 5
5
6
6
[ ![ GitHub stars] ( https://img.shields.io/github/stars/KTC-YoheiMiyashita/SpringBoot3BatchStarter?style=social )] ( https://github.com/KTC-YoheiMiyashita/SpringBoot3BatchStarter/stargazers )
7
7
[ ![ Build] ( https://github.com/kinto-technologies/SpringBoot3BatchStarter/actions/workflows/build.yml/badge.svg )] ( https://github.com/kinto-technologies/SpringBoot3BatchStarter/actions/workflows/build.yml )
8
+ ![ Codecov] ( https://img.shields.io/codecov/c/github/kinto-technologies/SpringBoot3BatchStarter?style=flat )
8
9
![ Java 21] ( https://img.shields.io/badge/Java-21%2B-blue )
9
10
[ ![ License: Apache 2.0] ( https://img.shields.io/badge/License-Apache%202.0-CC2233.svg )] ( https://opensource.org/licenses/Apache-2.0 )
10
11
Original file line number Diff line number Diff line change @@ -60,6 +60,14 @@ tasks.withType(Test).configureEach {
60
60
useJUnitPlatform()
61
61
}
62
62
63
+ jacocoTestReport {
64
+ reports {
65
+ xml. required = true
66
+ csv. required = true
67
+ html. outputLocation = layout. buildDirectory. dir(' jacocoHtml' )
68
+ }
69
+ }
70
+
63
71
// https://github.com/diffplug/spotless
64
72
spotless {
65
73
java {
Original file line number Diff line number Diff line change @@ -43,6 +43,14 @@ tasks.withType(Test).configureEach {
43
43
useJUnitPlatform()
44
44
}
45
45
46
+ jacocoTestReport {
47
+ reports {
48
+ xml. required = true
49
+ csv. required = true
50
+ html. outputLocation = layout. buildDirectory. dir(' jacocoHtml' )
51
+ }
52
+ }
53
+
46
54
// https://github.com/diffplug/spotless
47
55
spotless {
48
56
java {
You can’t perform that action at this time.
0 commit comments