Skip to content

Commit

Permalink
Test with JDK 21 (with Gradle 8.5)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbroyer committed Nov 29, 2023
1 parent 38793d7 commit 096ebdd
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gradle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,3 +117,34 @@ jobs:
with:
name: jdk-${{ matrix.java }}-tests
path: build/reports/tests/test/

test-jdk21-gradle85:
needs: linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: |
21
11
- name: Setup environment
run: |
echo "org.gradle.java.installations.auto-download=false" | tee -a gradle.properties
echo "org.gradle.java.installations.fromEnv=JAVA_HOME_21_X64" | tee -a gradle.properties
- name: Build with Gradle
id: gradle-build
uses: gradle/gradle-build-action@v2
with:
arguments: --scan test "-Ptest.java-toolchain=21"

- name: Store reports
if: always() && (steps.gradle-build.outcome == 'success' || steps.gradle-build.outcome == 'failure')
uses: actions/upload-artifact@v3
with:
name: jdk-21-tests
path: build/reports/tests/test/

0 comments on commit 096ebdd

Please sign in to comment.