ci: add support/spring-batch6 to publish workflow #1621
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| pull_request: | |
| concurrency: | |
| group: test-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| test-report: | |
| name: Test Report | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '17' | |
| distribution: 'adopt' | |
| cache: gradle | |
| - name: Validate Gradle wrapper | |
| uses: gradle/actions/wrapper-validation@v6 | |
| - name: CodeCoverage(with test) with Gradle | |
| run: | | |
| ./gradlew koverXmlReport | |
| ./gradlew -p support/spring-data-jpa-boot4 koverXmlReport | |
| ./gradlew -p support/spring-batch6 koverXmlReport | |
| ./gradlew -p example/spring-data-jpa-boot4 test | |
| ./gradlew -p example/spring-batch6 test | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v6 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| file: ./build/reports/kover/report.xml | |
| - name: Cleanup Gradle Cache | |
| run: | | |
| rm -f ~/.gradle/caches/modules-2/modules-2.lock | |
| rm -f ~/.gradle/caches/modules-2/gc.properties |