From 40d85643bb1a5ec69cd364ac30aee58cef04c289 Mon Sep 17 00:00:00 2001 From: Rustam Gimadiev Date: Wed, 10 Feb 2021 12:12:59 +0300 Subject: [PATCH] added workflow for github actions (#177) --- .github/workflows/maven.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/maven.yml diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 0000000000..c95ccd27f5 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,24 @@ +name: Java CI with Maven +on: + push: + branches: [ '*' ] + pull_request: + branches: [ master ] +jobs: + build: + runs-on: ubuntu-latest + steps: + - 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- + - uses: actions/checkout@v2 + - name: Set up JDK 1.13 + uses: actions/setup-java@v1 + with: + java-version: 1.13 + - name: Build with Maven + run: mvn clean package -Pprod