New workflow action and new fragments support in htmlflow-kotlin #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: Spotless Check | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - development | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| format-check: | |
| name: Spotless Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v1 | |
| with: | |
| java-version: 17 | |
| - name: Check code formatting with Spotless | |
| run: mvn spotless:check -B | |
| - name: Comment on failed formatting | |
| if: failure() && github.event_name == 'pull_request' | |
| uses: thollander/actions-comment-pull-request@v1 | |
| with: | |
| message: | | |
| Please run `mvn spotless:apply` locally to fix the formatting issues, then commit and push the changes. | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |