From 94bdf98f209db499b1d86e75da2f5bd759ee1e26 Mon Sep 17 00:00:00 2001 From: Tero Saarni Date: Mon, 28 Oct 2024 08:15:07 +0200 Subject: [PATCH] Run build and tests with multiple JDK releases --- .github/workflows/unit-test.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0563428..62cdc96 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -9,15 +9,20 @@ on: jobs: gradle: runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8', '11', '17', '21' ] + name: Java ${{ matrix.Java }} + steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: distribution: temurin - java-version: 17 + java-version: ${{ matrix.java }} - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/gradle-build-action@v3 - name: Execute Gradle build run: ./gradlew build