2021-07-16 23:25:59 +02:00
|
|
|
name: Build
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
|
2021-12-16 23:25:38 +01:00
|
|
|
- name: Set up JDK 17
|
2021-07-17 00:25:24 +02:00
|
|
|
uses: actions/setup-java@v2
|
2021-07-16 23:25:59 +02:00
|
|
|
with:
|
2021-12-16 23:25:38 +01:00
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
2021-07-16 23:25:59 +02:00
|
|
|
- name: Cache Maven packages
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.m2
|
|
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
|
|
restore-keys: ${{ runner.os }}-m2
|
2021-07-17 00:38:55 +02:00
|
|
|
- name: Build
|
|
|
|
run: mvn -B verify
|