From 9cb37eba8e8ee506bf4df9401cf86af766944c71 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Sun, 5 Jan 2020 21:21:48 +0100 Subject: [PATCH] Build with matrix of Java 7, 8 and 11. --- .github/workflows/ci-build.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 9ee2601d..354d2d52 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -6,6 +6,9 @@ jobs: build: name: Build and test runs-on: ubuntu-latest + strategy: + matrix: + java-version: [7, 8, 11] steps: - name: Checkout @@ -13,13 +16,15 @@ jobs: with: submodules: true - - name: Setup Java + - name: Setup Java ${{ matrix.java-version }} uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: ${{ matrix.java-version }} - - name: Build with Ant - run: ant compile + - name: Report Java version + run: | + java -version + javac -version - - name: Test with Ant + - name: Build with Ant run: ant test -- 2.39.5