From e4f1247bd983f61ccef32c963268c319136d1a7e Mon Sep 17 00:00:00 2001 From: "David M. Lloyd" Date: Wed, 8 Nov 2023 13:36:35 -0600 Subject: [PATCH] Update CI to build on 21 and test on 11, 17, and 21 --- .github/workflows/maven.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 09036cea..c593e7d2 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -23,18 +23,20 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] - java: ['11', '17'] steps: - uses: actions/checkout@v4 - - name: Set up JDK ${{ matrix.java }} + - name: Set up JDKs uses: actions/setup-java@v3 with: - java-version: ${{ matrix.java }} distribution: 'temurin' cache: 'maven' - - name: Build and Test with Java ${{ matrix.java }} - run: mvn -B clean verify + java-version: | + 11 + 17 + 21 + - name: Build and Test + run: mvn -B clean verify "-Djava11.home=${{env.JAVA_HOME_11_X86}}" "-Djava17.home=${{env.JAVA_HOME_17_X86}}" format-check: runs-on: ubuntu-latest