Add Gradle wrapper scripts and update GitHub Actions #61
This file contains 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: Checks | |
on: [ push ] | |
jobs: | |
tests: | |
name: Run tests for Java ${{ matrix.version }} | |
runs-on: [ self-hosted, small ] | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- 6 | |
- 7 | |
- 8 | |
- 9 | |
- 10 | |
- 11 | |
- 12 | |
- 13 | |
- 14 | |
- 15 | |
- 16 | |
- 17 | |
- 18 | |
- 19 | |
- 20 | |
- 21 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Java ${{ matrix.version }} | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: '${{ matrix.version }}' | |
cache: 'gradle' | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Install Dependencies | |
run: ./gradlew build | |
- name: Run tests | |
run: ./gradlew test -i |