From 313d55407c828860c53c91d067148333074fde8c Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Mon, 19 Oct 2020 16:36:29 +0200 Subject: [PATCH 1/2] Added a github action to build and test on each push On each push mvn install and mvn test will be executed on ubuntu 18.04, latest Mac OSX and latest Windows using jdk 7, 8, 11 and 15 --- .github/workflows/ci.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci.yaml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml new file mode 100644 index 00000000..d8c79638 --- /dev/null +++ b/.github/workflows/ci.yaml @@ -0,0 +1,28 @@ +--- +name: Java CI + +on: [push] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04, macOS-latest, windows-latest] + java: [7, 8, 11, 15] + fail-fast: false + max-parallel: 4 + name: Test JDK ${{ matrix.java }}, ${{ matrix.os }} + + steps: + - uses: actions/checkout@v1 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build with Maven + run: mvn install -DskipTests=true + - name: Test with Maven + run: mvn test -B --file pom.xml + +... \ No newline at end of file From 457a72a473071deb1a2997d1001df4e848c25251 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Mon, 19 Oct 2020 16:42:37 +0200 Subject: [PATCH 2/2] Adjusted build to use JDK7 only --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d8c79638..a3556bc6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,8 +8,8 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-18.04, macOS-latest, windows-latest] - java: [7, 8, 11, 15] + os: [ubuntu-18.04] + java: [7] fail-fast: false max-parallel: 4 name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}