From 455580ccb455b980cd5895e308840df916d876f6 Mon Sep 17 00:00:00 2001 From: Anuraag Agrawal Date: Tue, 24 Nov 2020 16:28:48 +0900 Subject: [PATCH] Add GitHub workflow build --- .github/workflows/continuous-build.yml | 27 ++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/continuous-build.yml diff --git a/.github/workflows/continuous-build.yml b/.github/workflows/continuous-build.yml new file mode 100644 index 0000000..386a10a --- /dev/null +++ b/.github/workflows/continuous-build.yml @@ -0,0 +1,27 @@ +name: Continuous Build +on: + push: + branches: master + pull_request: + branches: master + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: Setup java + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: Build with Maven + run: mvn -B package