chore(deps): update actions/checkout action to v6 #566
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
| on: | |
| push: | |
| branches: ['master'] | |
| pull_request: | |
| permissions: | |
| checks: write # for SonarQube | |
| contents: write # for semantic-release/github | |
| issues: write # fir semantic-release/github | |
| statuses: read # for SonarQube | |
| pull-requests: write # for SonarQube and semantic-release/github | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'microsoft' | |
| java-version-file: '.java-version' | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'npm' | |
| - name: Setup Gradle with wrapper validation and dependency graphs | |
| uses: gradle/actions/setup-gradle@v4 | |
| with: | |
| validate-wrappers: true | |
| dependency-graph: generate-and-submit | |
| - run: | | |
| ./gradlew build ${SONAR_TOKEN:+sonar} | |
| rm build/libs/*.jar | |
| npm ci | |
| npx semantic-release | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USERNAME }} | |
| ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | |
| ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_KEY }} | |
| ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PASSWORD }} | |
| - uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: reports | |
| path: build/reports |