25 lines
565 B
YAML
25 lines
565 B
YAML
name: build
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
steps:
|
|
- name: checkout repository
|
|
uses: https://gitea.com/actions/checkout@v2
|
|
- name: set up java
|
|
uses: https://gitea.com/actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: Set up Maven
|
|
uses: https://github.com/stCarolas/setup-maven@v5
|
|
with:
|
|
maven-version: 3.9.9
|
|
- name: build with maven
|
|
run: mvn --batch-mode --file pom.xml package
|