home-cert-assistant/.github/workflows/formatting.yml
CybAtax 56d6b8694a
🎨 Add spotless formatting (#2)
* 🎨 Add spotless formatting

* 🚧 Add formatting check

* 🚧 Fix workflow label, Add build workflow

* 🛠️ Fix typos

* 🏃 Make binaries ~run~executable

* 🔧 Fix step name
2024-11-17 19:25:32 +01:00

28 lines
No EOL
604 B
YAML

name: Check formatting
on:
pull_request:
branches:
- main
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
check-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21
- uses: gradle/actions/setup-gradle@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run formatting check
run: ./gradlew spotlessCheck