- Notifications
You must be signed in to change notification settings - Fork26
Develop#451
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| 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 -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 -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/** |