49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
name: Java CI with Maven
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-and-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: shogo82148/actions-setup-redis@v1
|
|
with:
|
|
redis-version: "7.x"
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
distribution: "graalvm"
|
|
java-version: "25"
|
|
cache: "maven"
|
|
|
|
- uses: gerlero/apt-install@v1
|
|
with:
|
|
packages: build-essential zlib1g-dev docker.io
|
|
|
|
- name: Build and Test all modules
|
|
run: |
|
|
./mvnw -B install \
|
|
-Dquarkus.container-image.push=false \
|
|
|
|
- name: Publish Test Report
|
|
uses: dorny/test-reporter@v3
|
|
if: always()
|
|
with:
|
|
name: "JUnit Tests Report"
|
|
path: "**/target/surefire-reports/*.xml"
|
|
reporter: java-junit
|
|
fail-on-error: true
|