This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Bump org.springframework.boot:spring-boot-starter-parent from 3.5.6 to 4.0.0 #241
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| - 'hotfix/v*.*.*' | |
| jobs: | |
| back-end: | |
| name: Back-End | |
| runs-on: ubuntu-latest | |
| outputs: | |
| current_version: ${{ steps.metadata.outputs.current_version }} | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 25 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '25' | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Cache SonarQube packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.sonar/cache | |
| key: ${{ runner.os }}-sonar | |
| restore-keys: ${{ runner.os }}-sonar | |
| - name: Cache Maven packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Lint | |
| run: mvn spotless:check | |
| - name: Build | |
| run: mvn clean package -P production | |
| - name: Publish test report | |
| if: always() | |
| uses: mikepenz/action-junit-report@v6 | |
| with: | |
| report_paths: 'target/surefire-reports/TEST-*.xml' | |
| - name: Sonar | |
| if: github.event.pull_request.head.repo.fork == false | |
| run: mvn verify sonar:sonar | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| - name: Metadata | |
| id: metadata | |
| run: echo current_version=$(echo $(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)) >> $GITHUB_OUTPUT | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: suricate | |
| path: target/suricate-${{ steps.metadata.outputs.current_version }}.jar | |
| front-end: | |
| name: Front-End | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js 24.x | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: '24.x' | |
| - name: Lint | |
| run: | | |
| npm install --no-progress | |
| npm run lint | |
| - name: Build | |
| run: | | |
| npm run build -- --configuration production | |
| npm run test | |
| build-docker: | |
| name: Build Docker | |
| runs-on: ubuntu-latest | |
| needs: [ front-end, back-end ] | |
| if: endsWith(needs.back-end.outputs.current_version, '-SNAPSHOT') | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Download artifact | |
| uses: actions/download-artifact@v6 | |
| with: | |
| name: suricate | |
| path: target | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Docker login | |
| if: github.ref == 'refs/heads/master' | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.DOCKER_USER }} | |
| password: ${{ secrets.DOCKER_TOKEN }} | |
| - name: Docker build | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: . | |
| file: .docker/Dockerfile | |
| platforms: linux/amd64,linux/arm64 | |
| push: ${{ github.ref == 'refs/heads/master' && 'true' || 'false' }} | |
| tags: michelin/suricate:${{ needs.back-end.outputs.current_version }} | |
| env: | |
| DOCKER_BUILD_SUMMARY: false |