From c658181da4742319de7970fc1cb9b2387846c538 Mon Sep 17 00:00:00 2001 From: CybAtax <62847599+CybAtax@users.noreply.github.com> Date: Sun, 17 Nov 2024 18:29:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Add=20formatting=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/formatting.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/formatting.yml diff --git a/.github/workflows/formatting.yml b/.github/workflows/formatting.yml new file mode 100644 index 0000000..fc95b1f --- /dev/null +++ b/.github/workflows/formatting.yml @@ -0,0 +1,28 @@ +name: Check formatting + +on: + pull_request: + branches: + - main + +concurrency: + cancel-in-progress: true + group: ${{ github.workflow }}-${{ github.ref }} + +jobs: + check-formatting: + runs-on: linux + steps: + - uses: actions/checkout@v44 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: 17 + - uses: gradle/actions/setup-gradle@v4 + - uses: actions/setup-node@v4 + with: + node-version: 20 + - name: Run formatting check + run: ./gradlew spotlessCheck \ No newline at end of file