From aa08e3cfa59807545ba50ad34e13d3c45b925518 Mon Sep 17 00:00:00 2001 From: Amaury Carrade Date: Sun, 11 Apr 2021 22:33:18 +0200 Subject: [PATCH] Test against all supported Java versions --- .github/workflows/ci.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 17cb485..f229bad 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,21 @@ -name: Build & Test -on: [push, pull_request] +name: CI +on: + push: + branches: + - master + pull_request: + branches: + - master jobs: build: + name: Test on Java ${{ matrix.java }} runs-on: ubuntu-latest + + strategy: + matrix: + java: [8, 9, 10, 11, 12, 13, 14, 15] + steps: - name: Checkout uses: actions/checkout@v2 @@ -11,7 +23,7 @@ jobs: - name: Set up JDK 1.8 uses: actions/setup-java@v1 with: - java-version: 8 + java-version: ${{ matrix.java }} - name: Cache Maven packages uses: actions/cache@v2