Update dependency org.sonarsource.scanner.maven:sonar-maven-plugin to v5 #72
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: Verify PRs | |
| on: | |
| pull_request: | |
| branches: | |
| - master | |
| tags-ignore: | |
| - '**' | |
| paths-ignore: | |
| - '**.md' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up JDK 11 | |
| uses: actions/setup-java@v5 | |
| with: | |
| java-version: '11' | |
| distribution: 'temurin' | |
| cache: maven | |
| server-id: ossrh | |
| server-username: MAVEN_USERNAME | |
| server-password: MAVEN_PASSWORD | |
| - name: Prepare Maven settings.xml | |
| run: | | |
| cat "${{ github.workspace }}/.github/settings.xml" > ~/.m2/settings.xml | |
| - name: Build with Maven | |
| env: | |
| MAVEN_USERNAME: ${{ secrets.OSSRH_USER }} | |
| MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | |
| run: | | |
| mvn --batch-mode --update-snapshots verify |