From 409aefbfe8cfe75d8957876dfaa09438a2e822e7 Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Fri, 2 Jun 2023 17:07:21 -0400 Subject: [PATCH] Test Java versions Signed-off-by: Alex Nelson --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0fbb727..72a6ea9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -69,6 +69,13 @@ jobs: java: runs-on: ubuntu-latest + strategy: + matrix: + # Test oldest and most current supported versions, per: + # https://adoptium.net/support/ + java-version: + - '11' + - '20' steps: # Get the code from the repository @@ -80,7 +87,7 @@ jobs: uses: actions/setup-java@v3.11.0 with: distribution: 'temurin' - java-version: '18' + java-version: ${{ matrix.java-version }} cache: 'maven' # Build the project