Hangar/.github/workflows/backend_build.yml
renovate[bot] 3f427ab043
chore(deps): update actions/setup-java action to v3 (#998)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: MiniDigger | Martin <admin@benndorf.dev>
2022-10-31 16:03:31 +01:00

49 lines
1.0 KiB
YAML

name: Build Backend
on:
# allow manual dispatch
workflow_dispatch:
# run on PRs
pull_request:
paths:
- 'backend/**'
- '.github/workflows/backend_build.yml'
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
env:
CI: true
defaults:
run:
working-directory: backend
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- name: Cache Maven Deps
uses: actions/cache@v3
with:
path: $GITHUB_WORKSPACE/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build backend
run: mvn --batch-mode --errors --fail-at-end --show-version --no-transfer-progress -Dmaven.repo.local=$GITHUB_WORKSPACE/.m2/repository install