Skip to content

Commit 628a619

Browse files
authored
Format code when the build task runs (#68)
1 parent 761c91d commit 628a619

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
working-directory: ./codegen-test
2828
run: chmod +x gradlew
2929

30-
- name: Build plugin
31-
run: ./gradlew build
30+
- name: Assemble and Check
31+
run: ./gradlew assemble check
3232

3333
- name: Test plugin (generate Java code)
3434
working-directory: ./codegen-test

codegen/build.gradle.kts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,12 @@ tasks {
6666
test {
6767
useJUnitPlatform()
6868
}
69-
69+
7070
groovydoc {
7171
enabled = false
7272
}
73+
74+
build {
75+
dependsOn(spotlessApply)
76+
}
7377
}

0 commit comments

Comments
 (0)