spotless.yml 494 B

12345678910111213141516171819202122232425262728
  1. name: Spotless Style Check
  2. on:
  3. push:
  4. pull_request:
  5. types: [opened, synchronize, reopened]
  6. # Allows you to run this workflow manually from the Actions tab
  7. workflow_dispatch:
  8. jobs:
  9. build:
  10. runs-on: ubuntu-latest
  11. steps:
  12. - uses: actions/checkout@v3
  13. - name: Set up JDK
  14. uses: actions/setup-java@v3
  15. with:
  16. java-version: 17
  17. distribution: 'temurin'
  18. - name: Check with Spotless
  19. run: mvn clean spotless:check