test: use a single method to generate Gradle versions for the tests #269
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: CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - '*' | |
| # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners | |
| jobs: | |
| build: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 50 | |
| submodules: true | |
| - name: Set up Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: | | |
| 8 | |
| 21 | |
| distribution: 'zulu' | |
| - name: Test | |
| uses: burrunan/gradle-cache-action@v3 | |
| with: | |
| job-id: jdk21 | |
| gradle-version: wrapper | |
| arguments: | | |
| --no-parallel --no-daemon --scan | |
| build |