mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2024-11-26 04:25:31 +01:00
Do spotless checks on each github action build
This commit is contained in:
parent
924734b72d
commit
f79254115e
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -31,7 +31,7 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-bluemap-
|
${{ runner.os }}-bluemap-
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew clean test build
|
run: ./gradlew clean spotlessCheck test build
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: artifacts
|
name: artifacts
|
||||||
|
@ -28,6 +28,12 @@ tasks.register("spotlessApply") {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
tasks.register("spotlessCheck") {
|
||||||
|
gradle.includedBuilds.forEach {
|
||||||
|
dependsOn(it.task(":spotlessCheck"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
tasks.register("publish") {
|
tasks.register("publish") {
|
||||||
gradle.includedBuilds.forEach {
|
gradle.includedBuilds.forEach {
|
||||||
dependsOn(it.task(":publish"))
|
dependsOn(it.task(":publish"))
|
||||||
|
Loading…
Reference in New Issue
Block a user