From 9044b79dbd1543078189f9ddea9140e189b11130 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Mon, 16 Nov 2020 15:05:55 +0100 Subject: [PATCH 1/2] Added github action to run mvn verify on each push Added a github action to run mvn verify on each push on Ubuntu 18.04, latest OS X and latest Windows using JDK 8, 11, and 15 --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..680aede4 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +--- +name: Java CI + +on: [push] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, macOS-latest, windows-latest] + java: [8, 11, 15] + fail-fast: false + max-parallel: 4 + name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Test with Maven + run: mvn verify -B --file pom.xml + +... \ No newline at end of file From d4345d389812782f03e776770a44d92d6a1fb9f7 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Mon, 16 Nov 2020 15:11:02 +0100 Subject: [PATCH 2/2] Adjusted action --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 680aede4..38ed6dd5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-18.04, macOS-latest, windows-latest] - java: [8, 11, 15] + os: [ubuntu-18.04, macOS-latest] + java: [8] fail-fast: false max-parallel: 4 name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}