From 54e6bc31541821344fd652f7120070aa28e71b65 Mon Sep 17 00:00:00 2001 From: Athou Date: Sat, 30 Jul 2022 13:55:38 +0200 Subject: [PATCH] add matrix to test for multiple java versions --- .github/workflows/build.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f45223c9..6f006715 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,13 +5,16 @@ on: [push] jobs: build: runs-on: ubuntu-latest + strategy: + matrix: + java: ["8", "11", "17"] steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - name: Set up Java + uses: actions/setup-java@v3 with: - java-version: "11" - distribution: "adopt" + java-version: ${{ matrix.java }} + distribution: "temurin" - name: Build with Maven run: mvn --batch-mode --update-snapshots verify