25 lines
598 B
YAML
25 lines
598 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@v2
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: find maven
|
|
run: ls -la /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk/21.0.7-6.0.LTS/x64/bin
|
|
- name: check path
|
|
run: echo $PATH
|
|
- name: build with maven
|
|
run: mvn --batch-mode --file pom.xml package
|