Bump com.diffplug.spotless:spotless-maven-plugin from 3.10.1 to 3.10.2 #87
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
| # SPDX-FileCopyrightText: 2006 Istituto Nazionale di Fisica Nucleare | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| name: Check formatting | |
| on: [push, pull_request] | |
| jobs: | |
| check-formatting: | |
| if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7.0.1 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v6 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 21 | |
| - name: Cache Maven packages | |
| uses: actions/cache@v6 | |
| with: | |
| path: ~/.m2 | |
| key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: ${{ runner.os }}-m2 | |
| - name: Check formatting | |
| run: mvn -B spotless:check |