-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Zorbatron/spotless-workflow
Add spotless checking to PRs
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copied from GT:CEu | ||
name: Build Setup | ||
description: Setup for standard Java builds | ||
|
||
inputs: | ||
update-cache: | ||
description: If cache should be updated | ||
required: false | ||
default: false | ||
|
||
runs: | ||
using: 'composite' | ||
|
||
steps: | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: zulu | ||
java-version: 17 | ||
|
||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@v3 | ||
with: | ||
cache-write-only: ${{ inputs.update-cache }} | ||
generate-job-summary: false | ||
gradle-home-cache-includes: | | ||
caches | ||
caches/retro_futura_gradle | ||
notifications | ||
jdks | ||
wrapper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copied from GT:CEu | ||
# Runs formatting requirements | ||
name: Java Formatting | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
|
||
concurrency: | ||
group: formatting-${{ github.head_ref || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
formatting: | ||
name: Formatting | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Build | ||
uses: ./.github/actions/build_setup | ||
|
||
- name: Run Spotless Formatting Check with Gradle | ||
run: ./gradlew spotlessCheck --warning-mode all --build-cache |