Skip to content

Commit

Permalink
Workaround spotless plugin bug (#4656)
Browse files Browse the repository at this point in the history
See #4655, required until diffplug/spotless#1215 is fixed. Similar to projectnessie/cel-java#185.
  • Loading branch information
snazy authored Jul 7, 2022
1 parent 98278a2 commit 5fccdb9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,16 @@ jobs:
with:
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}

- name: Gradle / spotless
uses: gradle/gradle-build-action@v2
with:
# 'spotlessCheck' separate: workaround until https://github.com/diffplug/spotless/issues/1215 is fixed
arguments: spotlessCheck

- name: Gradle / compile
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessCheck checkstyleMain checkstyleTest jar testClasses testJar
arguments: checkstyleMain checkstyleTest jar testClasses testJar

- name: Gradle / unit test
uses: gradle/gradle-build-action@v2
Expand All @@ -46,7 +52,8 @@ jobs:
- name: Gradle / check incl. integ-test
uses: gradle/gradle-build-action@v2
with:
arguments: check
# '-x spotlessCheck': workaround until https://github.com/diffplug/spotless/issues/1215 is fixed
arguments: check -x spotlessCheck

- name: Gradle / Gatling simulations
uses: gradle/gradle-build-action@v2
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
- name: Setup Java, Maven
uses: ./.github/actions/dev-tool-java

- name: Gradle / spotless
uses: gradle/gradle-build-action@v2
with:
# 'spotlessCheck' separate: workaround until https://github.com/diffplug/spotless/issues/1215 is fixed
arguments: spotlessCheck

- name: Gradle / compile
uses: gradle/gradle-build-action@v2
with:
arguments: spotlessCheck checkstyleMain checkstyleTest jar testClasses testJar
arguments: checkstyleMain checkstyleTest jar testClasses testJar

- name: Gradle / unit test
uses: gradle/gradle-build-action@v2
Expand All @@ -66,7 +72,8 @@ jobs:
- name: Gradle / check incl. integ-test
uses: gradle/gradle-build-action@v2
with:
arguments: check
# '-x spotlessCheck': workaround until https://github.com/diffplug/spotless/issues/1215 is fixed
arguments: check -x spotlessCheck

- name: Gradle / Gatling simulations
uses: gradle/gradle-build-action@v2
Expand Down

0 comments on commit 5fccdb9

Please sign in to comment.