From 708867137a40cc9752f0ce07d4aa5e26fda9f8ac Mon Sep 17 00:00:00 2001 From: ArMonarch <131849217+ArMonarch@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:28:43 +0545 Subject: [PATCH] Update maven.yml to compile on java-version 11,16,17 --- .github/workflows/maven.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 91106d3..c38391c 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,17 +1,27 @@ name: Java CI -on: [push] +on: + push: + branches: + - master + - main jobs: build: - - runs-on: ubuntu-latest + runs-on: ubuntu-latest + strategy: + matrix: + java-version: ['11','16','17'] steps: - - uses: actions/checkout@v1 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Set up JDK + uses: actions/setup-java@v2 with: - java-version: 1.8 + distribution: 'temurin' + java-version: ${{matrix.java-version}} + - name: Build with Maven run: mvn -B package --file pom.xml