Use Java 21 in workflows #191
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: Polypheny Control CI | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
java: [ 21 ] | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
withAuth: [ testWithoutAuth, testWithAuth ] | |
name: Java ${{ matrix.java }} @ ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: ${{ matrix.java }} | |
- name: Build with Gradle | |
run: ./gradlew assemble | |
- name: Run tests | |
run: ./gradlew ${{ matrix.withAuth }} |