Do spotless checks on each github action build

This commit is contained in:
Lukas Rieger (Blue) 2023-06-08 22:15:21 +02:00
parent 924734b72d
commit f79254115e
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2
2 changed files with 7 additions and 1 deletions

View File

@ -31,7 +31,7 @@ jobs:
restore-keys: |
${{ runner.os }}-bluemap-
- name: Build with Gradle
run: ./gradlew clean test build
run: ./gradlew clean spotlessCheck test build
- uses: actions/upload-artifact@v2
with:
name: artifacts

View File

@ -28,6 +28,12 @@ tasks.register("spotlessApply") {
}
}
tasks.register("spotlessCheck") {
gradle.includedBuilds.forEach {
dependsOn(it.task(":spotlessCheck"))
}
}
tasks.register("publish") {
gradle.includedBuilds.forEach {
dependsOn(it.task(":publish"))