Skip to content

chore: improve ci pipeline #11778

chore: improve ci pipeline

chore: improve ci pipeline #11778

Workflow file for this run

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