Update spring to v4 #2650
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: | |
| pull_request: | |
| jobs: | |
| build: | |
| name: "build" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| distribution: liberica | |
| java-version: 21 | |
| cache: gradle | |
| - name: Generate Javadoc | |
| run: ./gradlew javadoc | |
| - name: Build and Test | |
| run: ./gradlew check | |
| - name: Upload test reports | |
| if: ${{ failure() }} | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: test-reports | |
| path: '**/build/reports' | |
| - name: Sonar analysis | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| run: ./gradlew sonar -i | |
| - name: Publish | |
| if: ${{ github.ref == 'refs/heads/main' || startswith(github.ref, 'refs/tags/') }} | |
| env: | |
| SIGNING_PRIVATE_KEY: ${{ secrets.MAVEN_CENTRAL_GPG_KEY }} | |
| SIGNING_PASSWORD: ${{ secrets.MAVEN_CENTRAL_GPG_PASSWORD }} | |
| ORG_GRADLE_PROJECT_mavenCentralPublishUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
| ORG_GRADLE_PROJECT_mavenCentralPublishPassword: ${{ secrets.MAVEN_CENTRAL_PASSWORD }} | |
| run: ./gradlew publish |