chore: improve ci pipeline #11778
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: Build Pull Request | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| - 1.* | |
| - 2.* | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| cache: 'maven' | |
| cache-dependency-path: '**/pom.xml' | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24' | |
| cache: 'npm' | |
| cache-dependency-path: '**/package-lock.json' | |
| - name: Build with Maven (parallel modules, no coverage) | |
| run: ./mvnw -B -T 1C --no-transfer-progress install | |
| # -T 1C = 1 thread per CPU core for parallel module builds | |
| # Coverage skipped for faster PR feedback; main branch builds have coverage | |
| - name: Upload surefire reports | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: surefire-reports | |
| path: | | |
| **/target/surefire-reports/*.xml | |
| **/target/surefire-reports/*.txt | |
| **/target/surefire-reports/*.dump* | |
| **/target/surefire-reports/*.out | |
| **/target/surefire-reports/*.err | |
| if-no-files-found: warn | |
| retention-days: 14 |