From e05e88326e9c1c4279ae87f4a676277a8d8bbc09 Mon Sep 17 00:00:00 2001 From: Chris Vest Date: Sun, 9 Jun 2024 09:45:56 -0700 Subject: [PATCH] Test all supported Java versions --- .github/workflows/maven.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 23876c02..eec69a94 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -8,15 +8,16 @@ on: jobs: build: - + strategy: + matrix: + java-version: [11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22] runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - - name: Set up JDK 11 + - name: Set up Java uses: actions/setup-java@v2 with: - java-version: '11' - distribution: 'adopt' + java-version: ${{ java-version }} + distribution: 'zulu' - name: Build with Maven run: ./mvnw -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn verify -B