[maven-release-plugin] prepare release 1.5.3.2 #9
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 project | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| java: [11, 17] | |
| name: "Java ${{ matrix.java }} build" | |
| steps: | |
| - name: Checkout project | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up Java | |
| uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 | |
| with: | |
| distribution: "temurin" | |
| java-version: "${{ matrix.java }}" | |
| cache: "maven" | |
| - name: Verify build | |
| run: mvn -B verify | |
| sonar: | |
| needs: build | |
| if: github.base_ref == 'main' && github.event_name == 'pull_request' | |
| name: Prepare analysis context | |
| uses: WrenSecurity/.github/.github/workflows/sonar-pull-prepare.yml@main | |
| with: | |
| pull_request: ${{ toJSON(github.event.pull_request) }} |