Update Gradle to v9.7.0 #974
Workflow file for this run
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: build | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java-version: [8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Run tests | |
| run: ./gradlew check -PjavaLanguageVersion=${{matrix.java-version}} | |
| coverage: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Create code coverage report | |
| run: ./gradlew jacocoTestReport | |
| - name: Upload code coverage report | |
| uses: codecov/codecov-action@v7 | |
| with: | |
| files: build/reports/jacoco/test/jacocoTestReport.xml | |
| name: codecov | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| dependency-check: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Check dependencies | |
| run: | | |
| ./gradlew dependencyCheckAnalyze \ | |
| -Dorg.gradle.jvmargs='-Xmx4g' \ | |
| -PnvdApiKey='${{ secrets.NVD_API_KEY }}' \ | |
| -PossindexUsername='${{ secrets.OSSINDEX_USERNAME }}' -PossindexPassword='${{ secrets.OSSINDEX_TOKEN }}' |