🎨 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
This commit is contained in:
CybAtax 2024-11-17 19:25:32 +01:00 committed by GitHub
parent e75ac48743
commit 56d6b8694a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 79 additions and 0 deletions

25
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Build
on:
pull_request:
branches:
- main
concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}
jobs:
build:
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
- name: Build gradle project
run: ./gradlew build

28
.github/workflows/formatting.yml vendored Normal file
View 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: 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