From 217cccd7049fa54c68a2c4d5b75c21c7ddc2d76a Mon Sep 17 00:00:00 2001 From: brothelul <1285823170@qq.com> Date: Tue, 9 Mar 2021 09:47:53 +0800 Subject: [PATCH] Add GitHub Actions CI workflow (#1992) --- .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..8cbf2c97 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,28 @@ +name: Sentinel CI + +on: [push] + +jobs: + build: + runs-on: ubuntu-18.04 + strategy: + matrix: + java: [8, 11] + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Setup Java + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + architecture: x64 + + - name: Test with Maven + run: mvn test + + - name: Build with Maven + run: mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -DminimumPriority=1 + + - name: Run Codecov + run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file