build: run full build against main branch
#4433
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: Full Build | |
| on: | |
| push: | |
| branches: | |
| - main # Only run push on main (merges/direct pushes) | |
| pull_request: | |
| branches: | |
| - main # Run on any PR targeting main | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| java-version: [21] | |
| include: | |
| - os: ubuntu-latest | |
| java-version: 25 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up JDK ${{ matrix.java-version }} | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java-version }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Install | |
| run: mvn clean install -DskipTests -q -P gradlePlugin | |
| - name: Build | |
| run: mvn -B package -P gradlePlugin | |
| env: | |
| BUILD_LOG_LEVEL: 'ERROR' | |
| - name: Tests | |
| uses: mikepenz/action-junit-report@v5 | |
| if: failure() | |
| with: | |
| check_name: Test ${{ matrix.os }} ${{ matrix.java-version }} | |
| report_paths: '*/target/*/TEST-*.xml' |