chore(deps): update eslint monorepo to v9.39.0 (#4800) #2861
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 Main / Version Branch | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - 1.* | |
| - 2.* | |
| - 3.* | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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: 'lts/*' | |
| cache: 'npm' | |
| cache-dependency-path: '**/package-lock.json' | |
| - name: Build with Maven | |
| run: ./mvnw -B --no-transfer-progress install -P coverage | |
| - name: Upload surefire reports | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| 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 | |
| publish-snapshot: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - 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: 'lts/*' | |
| cache: 'npm' | |
| cache-dependency-path: '**/package-lock.json' | |
| - name: Publish SNAPSHOT version to GitHub Packages (we can skip tests, since we only deploy, if the build workflow succeeded) | |
| run: ./mvnw -B --no-transfer-progress deploy -DskipTests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Extract Maven project version for Asciidoc GitHub Pages directory naming | |
| run: echo ::set-output name=version::$(./mvnw -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) | |
| id: project | |
| - name: Show extracted Maven project version | |
| run: echo ${{ steps.project.outputs.version }} | |
| - name: Build documentation with Maven | |
| run: ./mvnw -B --no-transfer-progress site | |
| - name: Deploy documentation to GitHub Pages | |
| uses: JamesIves/github-pages-deploy-action@v4.7.3 | |
| with: | |
| branch: gh-pages | |
| folder: spring-boot-admin-docs/target/generated-docs/build | |
| target-folder: ${{ steps.project.outputs.version }} | |
| clean: true # Automatically remove deleted files from the deploy branch |