Include Java version 21 in tests #184
Workflow file for this run
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: Test and lint SDK | |
on: | |
pull_request: | |
paths: | |
- '**/*' | |
env: | |
ORG_GRADLE_PROJECT_ossrhUsername: ${{ secrets.OSSRH_USERNAME }} | |
ORG_GRADLE_PROJECT_ossrhPassword: ${{ secrets.OSSRH_PASSWORD }} | |
CI: true | |
jobs: | |
lint-test-sdk: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
java-version: ['8', '11', '17', '21'] # Define the Java versions to test against | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: 'adopt' | |
- name: Run tests | |
run: make test-data && ./gradlew check --no-daemon --stacktrace |