Skip to content

merge from dev/origin #5

merge from dev/origin

merge from dev/origin #5

Workflow file for this run

# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
concurrency:
group: backend-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 30
env:
MAVEN_OPTS: -Xmx2G -Xms2G
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v2
with:
java-version: 8
distribution: 'adopt'
- 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: Check Code Style
run: |
./mvnw -T 2C -B --no-snapshot-updates clean checkstyle:check
- name: Build and Package
run: |
./mvnw -Pgoogle-mirror -B clean package \
-Dmaven.test.skip=true \
-Dspotless.check.skip=true \
--no-snapshot-updates \
-pl !datasophon-ui,!datasophon-api,!datasophon-service -am