diff --git a/.github/workflows/spotless.yml b/.github/workflows/spotless.yml new file mode 100644 index 0000000..3ce5771 --- /dev/null +++ b/.github/workflows/spotless.yml @@ -0,0 +1,22 @@ +name: Spotless Check + +on: + pull_request: + branches: + - main + +jobs: + spotless-check: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK + uses: actions/setup-java@v2 + with: + distribution: 'temurin' + java-version: '22' + + - name: Install dependencies and run Spotless check + run: mvn spotless:check