From 209e796b7ad4d6bc6a99e95bdbd83fb46ce7f57c Mon Sep 17 00:00:00 2001 From: marko asplund Date: Sun, 17 Dec 2023 16:59:39 +0200 Subject: [PATCH] build with both java 8 and 11 --- .github/workflows/ci.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cd8cb43..74a54e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,15 @@ on: workflow_dispatch: jobs: test: - runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + include: + - os: ubuntu-latest + java: 8 + - os: ubuntu-latest + java: 17 + runs-on: ${{ matrix.os }} steps: - name: Checkout uses: actions/checkout@v4 @@ -13,7 +21,7 @@ jobs: uses: actions/setup-java@v3 with: distribution: temurin - java-version: 8 - cache: sbt - - name: Build and Test - run: sbt -v +test + java-version: ${{ matrix.java }} + - name: Build and test + shell: bash + run: sbt -v +test \ No newline at end of file