From 08ff04d6dc019b3860e17d7768c1daf552630ad8 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Wed, 28 Oct 2020 11:58:06 +0100 Subject: [PATCH] Added github action to test on each push On each push the mvn test will run on Ubuntu 18.04, latest OSX 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 000000000..f4825a672 --- /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@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