From 3510ca4c3ae35d0585bd6dbd009fc08beb5b6f45 Mon Sep 17 00:00:00 2001 From: Haowei Wen Date: Fri, 1 May 2020 21:23:27 +0800 Subject: [PATCH] Introducing GitHub Actions --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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 0000000..47b47c2 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI + +on: + push: + branches-ignore: [ master ] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup JDK 8 + uses: actions/setup-java@v1 + with: + java-version: 8 + + - name: Build + run: gradle + + - name: Test + run: gradle test + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: Build output + path: build/libs/*