ci(action): update actions/setup-java action to v5 #971
Workflow file for this run
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: CI | |
| on: | |
| pull_request: | |
| jobs: | |
| checkstyle_job: | |
| runs-on: ubuntu-latest | |
| name: Checkstyle | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - name: Run check style | |
| uses: nikitasavinov/checkstyle-action@master | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| reporter: "github-pr-check" | |
| tool_name: "testtool" | |
| checkstyle_config: "checkstyle.xml" | |
| level: error | |
| fail_on_error: true | |
| build: | |
| strategy: | |
| matrix: | |
| java: [8, 11, 15, 17, 20] | |
| max-parallel: 1 | |
| name: Build ${{ matrix.java }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0 | |
| with: | |
| distribution: "zulu" | |
| java-version: ${{ matrix.java }} | |
| check-latest: true | |
| cache: "maven" | |
| server-id: ossrh | |
| - name: Maven Build | |
| env: | |
| DESCOPE_PROJECT_ID: ${{ secrets.DESCOPE_PROJECT_ID }} | |
| DESCOPE_MANAGEMENT_KEY: ${{ secrets.DESCOPE_MANAGEMENT_KEY }} | |
| run: mvn -B -ntp package | |
| verify: | |
| name: Verify Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| - uses: actions/setup-java@f2beeb24e141e01a676f977032f5a29d81c9e27e # v5.1.0 | |
| with: | |
| distribution: "zulu" | |
| java-version: "11" | |
| check-latest: true | |
| cache: "maven" | |
| - run: mvn -B -ntp -P ci verify -DskipTests -Dgpg.skip |