From 687c36c515d710652da0b0595fb7cad22142a3b2 Mon Sep 17 00:00:00 2001 From: Chad Wilson Date: Tue, 26 Nov 2024 11:20:19 +0800 Subject: [PATCH] Run CI on multiple Java versions --- .github/workflows/maven.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index cf653c69..a9a5f331 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -16,15 +16,19 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + java_version: [ '8', '11', '17', '21' ] + fail-fast: false + steps: - uses: actions/checkout@v4 - - name: Set up JDK 8 + - name: Set up JDK uses: actions/setup-java@v4 with: - java-version: '8' + java-version: ${{ matrix.java_version }} distribution: 'temurin' cache: maven - name: Build with Maven