From f3c8fd75a63a2f49f41c81ec0c7f757f48c214c5 Mon Sep 17 00:00:00 2001 From: Gerrit Grunwald Date: Wed, 23 Dec 2020 14:09:15 +0100 Subject: [PATCH] GitHub actions (#646) * Added github action to test the build on each push On each push gradlew build will be executed on Ubuntu 18.04 using JDK 8, 11. --- .github/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 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..4f138b2e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +--- +name: Java CI + +on: [push] + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-18.04] + java: [8, 11] + 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: Grant execute permission for gradlew + run: chmod +x gradlew + - name: Build with Gradle + run: ./gradlew build + +... \ No newline at end of file