From 0d1dbf6d46c83d71d6b81c78eef4e9dbc9a9e7e4 Mon Sep 17 00:00:00 2001 From: Carl Dea Date: Wed, 2 Dec 2020 12:19:57 -0500 Subject: [PATCH] Use the New GitHub CI to build and test Java versions on Ubuntu, Macos, Windows. Signed-off-by: Carl Dea --- .github/workflows/ci-verify-java-versions.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/ci-verify-java-versions.yml diff --git a/.github/workflows/ci-verify-java-versions.yml b/.github/workflows/ci-verify-java-versions.yml new file mode 100644 index 00000000..3f9e0ad9 --- /dev/null +++ b/.github/workflows/ci-verify-java-versions.yml @@ -0,0 +1,41 @@ +name: Java CI build and test + +on: [push] + +jobs: + test-1: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest] + java: [7, 8, 11, 15, 16-ea] + fail-fast: false + max-parallel: 4 + name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + + - name: Verify with Maven + run: mvn -X verify -B --file pom.xml + test-2: # JDK 11+ fails because dependencies depend on older version of apache commons lang3. Should use 3.8.1 or greater. + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ macOS-latest ] + java: [ 7, 8 ] + fail-fast: false + max-parallel: 2 + name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Verify with Maven + run: mvn -X verify -B --file pom.xml +... \ No newline at end of file