From: Florian Zschocke Date: Sun, 5 Jan 2020 20:21:48 +0000 (+0100) Subject: Build with matrix of Java 7, 8 and 11. X-Git-Tag: r1.9.0~8^2~4 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9cb37eba8e8ee506bf4df9401cf86af766944c71;p=gitblit.git Build with matrix of Java 7, 8 and 11. --- 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