From 366ff1271dbb456ef27dfc73cd652f803b9bb5d9 Mon Sep 17 00:00:00 2001 From: sullis Date: Thu, 7 Jan 2021 02:21:29 -0800 Subject: [PATCH] enable GitHub Actions CI (#1709) --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 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..f0a7b72d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + pull_request: + branches: + - master + push: + branches: + - master + +jobs: + build: + runs-on: ubuntu-20.04 + strategy: + matrix: + java: [ '8', '11', '15' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v1 + with: + java-version: ${{ matrix.java }} + - name: print Java version + run: java -version + - uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Build + run: mvn --no-transfer-progress -B clean package --file pom.xml