Skip to content

New workflow action and new fragments support in htmlflow-kotlin #9

New workflow action and new fragments support in htmlflow-kotlin

New workflow action and new fragments support in htmlflow-kotlin #9

Workflow file for this run

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 }}