From bb05eb9c19b86adb3a41b4ad95e7e8bcb5164880 Mon Sep 17 00:00:00 2001 From: Remco Westerhoud Date: Wed, 2 Mar 2022 15:57:17 +0100 Subject: [PATCH] ci: remove automatic code formatting Automatic code formatting is causing more issues than it's worth at this moment. Instead we should fail the build if the checks don't pass and fix the issue manually. --- .github/workflows/build-test.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index f8910cc8..1bc251b3 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -4,7 +4,7 @@ on: workflow_call: { } jobs: code-formatting: - name: Apply code formatting + name: check code formatting timeout-minutes: 15 runs-on: ubuntu-latest @@ -27,12 +27,7 @@ jobs: java-version: 17 - name: Apply format - run: mvn spotless:apply - - - name: Commit and push format changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "chore: apply format" + run: mvn spotless:check build-and-test: name: Run tests on ${{ matrix.os }}