Update maven.yml (#25)

* Update and rename maven.yml to buildAndTest.yml
This commit is contained in:
Valentin Heiserer
2024-04-16 22:46:20 +02:00
committed by GitHub
parent c17202a83b
commit 402a2d71e2

View File

@@ -1,21 +1,24 @@
name: Java CI with Maven
name: Build and test Backend
on:
pull_request:
branches: [ "master" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
name: Build Backend
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
working-directory: Backend