|
# This workflow will build a Java project with Maven |
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven |
|
|
|
name: Java CI with Maven |
|
|
|
on: |
|
push: |
|
branches: |
|
- main |
|
- postgres |
|
pull_request: |
|
branches: |
|
- main |
|
- postgres |
|
|
|
permissions: |
|
contents: read |
|
|
|
jobs: |
|
build: |
|
|
|
runs-on: ubuntu-latest |
|
|
|
steps: |
|
- name: Checkout |
|
uses: actions/checkout@v7 |
|
- name: Set up JDK |
|
uses: actions/setup-java@v5 |
|
with: |
|
java-version: 25 |
|
distribution: 'sapmachine' |
|
- name: Build with Maven |
|
run: mvn -ntp -B clean install |