From 9f99a0eca85fd8e120de12f252bf28976f2b7060 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Wed, 28 Oct 2020 12:53:24 +0100 Subject: [PATCH 1/2] Added github actions to run tests after each push On each push mvn test will be executed on Ubuntu 18.04, latest Mac OS 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..92943fea --- /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-2016] + java: [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: Test with Maven + run: mvn test -B --file pom.xml + +... \ No newline at end of file From ee81ee93a167891e8f1f528b4093feee3c037960 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Wed, 28 Oct 2020 12:56:58 +0100 Subject: [PATCH 2/2] Run tests on Ubuntu 18.04 and JDK 8 --- .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 92943fea..d79a66ca 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-2016] - java: [8, 11, 15] + os: [ubuntu-18.04] + java: [8] fail-fast: false max-parallel: 4 name: Test JDK ${{ matrix.java }}, ${{ matrix.os }}