Skip to content

Merge pull request #499 from tcheeric/develop #464

Merge pull request #499 from tcheeric/develop

Merge pull request #499 from tcheeric/develop #464

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
java-version: ['21','17']
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: ${{ matrix.java-version }}
cache: maven
- name: Make release script executable
run: chmod +x scripts/release.sh
- name: Build and test (skip Docker ITs)
if: matrix.java-version == '21'
run: scripts/release.sh verify --no-docker
- name: Validate POM only on JDK 17 (project targets 21)
if: matrix.java-version == '17'
run: mvn -s .mvn/settings.xml -q -N validate
- name: Upload test reports and coverage (if present)
if: always()
uses: actions/upload-artifact@v4
with:
name: reports-jdk-${{ matrix.java-version }}
if-no-files-found: ignore
path: |
**/target/surefire-reports/**
**/target/failsafe-reports/**
**/target/site/jacoco/**
integration-tests:
name: Integration tests (Docker)
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push'
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup Java 21
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: '21'
cache: maven
- name: Run full verify (with Testcontainers)
run: mvn -s .mvn/settings.xml -q clean verify
- name: Upload IT reports and coverage
if: always()
uses: actions/upload-artifact@v4
with:
name: reports-integration
if-no-files-found: ignore
path: |
**/target/failsafe-reports/**
**/target/site/jacoco/**