From 1342a24e6f3402da804248741b26028fb14062ba Mon Sep 17 00:00:00 2001 From: Janne Valkealahti Date: Sat, 21 Nov 2020 13:31:55 +0000 Subject: [PATCH] Add ci workflow to 2.2.x --- .github/workflows/ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 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..bf8b4778 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + workflow_dispatch: + push: + branches: + - 2.2.x + pull_request: + branches: + - 2.2.x + +jobs: + build: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + java: [1.8] + fail-fast: false + + steps: + - uses: actions/checkout@v2 + - name: Setup JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: Build with Gradle + run: ./gradlew clean build + - name: Tar Build Logs + if: ${{ failure() }} + run: | + tar -zc --ignore-failed-read --file build/buildlogs.tar.gz */build/reports */*/build/reports + - name: Upload Build Logs + if: ${{ failure() }} + uses: actions/upload-artifact@v2 + with: + name: buildlogs + path: build/buildlogs.tar.gz