File tree Expand file tree Collapse file tree 3 files changed +51
-31
lines changed Expand file tree Collapse file tree 3 files changed +51
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : Build and Test
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - name : Checkout code
15+ uses : actions/checkout@v4
16+
17+ - name : Set up JDK 8
18+ uses : actions/setup-java@v4
19+ with :
20+ distribution : ' temurin'
21+ java-version : ' 8'
22+
23+ - name : Setup Gradle
24+ uses : gradle/actions/setup-gradle@v4
25+
26+ - name : Cache Gradle dependencies
27+ uses : actions/cache@v4
28+ with :
29+ path : |
30+ ~/.gradle/caches
31+ ~/.gradle/wrapper
32+ key : ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
33+ restore-keys : |
34+ ${{ runner.os }}-gradle-
35+
36+ - name : Verify dependencies
37+ run : ./gradlew dependencies
38+
39+ - name : Run checks and generate report
40+ run : |
41+ ./gradlew clean check
42+ ./gradlew jacocoTestReport
43+
44+ - name : Upload coverage report to Codecov
45+ uses : codecov/codecov-action@v4
46+ with :
47+ fail_ci_if_error : true
48+ token : ${{ secrets.CODECOV_TOKEN }}
49+ verbose : true
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ tasks.jacocoTestReport {
153153 .setFrom(files(" ${buildDir} /jacoco/jvmTest.exec" ))
154154
155155 reports {
156- xml.isEnabled = true
157- html.isEnabled = false
156+ xml.required.set( true )
157+ html.required.set( false )
158158 }
159159}
You can’t perform that action at this time.
0 commit comments