🚧 Add formatting check
This commit is contained in:
parent
de7b7c3b02
commit
c658181da4
1 changed files with 28 additions and 0 deletions
28
.github/workflows/formatting.yml
vendored
Normal file
28
.github/workflows/formatting.yml
vendored
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue