From ae9cb16406bacdaafee83b62d35ad5a75f30e1f2 Mon Sep 17 00:00:00 2001 From: Jeanfrancois Arcand Date: Tue, 2 Apr 2024 17:52:43 -0400 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c8aeb3a..946f881 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,7 +1,4 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - -name: Java CI with Maven +name: Atmosphere Play on: push: @@ -11,14 +8,23 @@ on: jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + java-version: [11, 18, 22] + steps: - uses: actions/checkout@v2 - - name: Set up JDK 1.8 - uses: actions/setup-java@v1 + + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v2 with: - java-version: 1.8 + java-version: ${{ matrix.java-version }} + distribution: 'temurin' + - name: Build with Maven run: mvn -B package --file pom.xml + + - name: Test with Maven + run: mvn -B test --file pom.xml