summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJiayu Liu <Jimexist@users.noreply.github.com>2022-05-06 12:56:42 +0800
committerGitHub <noreply@github.com>2022-05-06 00:56:42 -0400
commit53ec08228a14130909d4dd6fc2c98f47a09d76b0 (patch)
tree19fd3589502b5471be23efe4d1190ad26fcbc91e /.github
parent23b86364ef3dbccc19f5f3828e6d115f7b015651 (diff)
downloadthrift-53ec08228a14130909d4dd6fc2c98f47a09d76b0.tar.gz
THRIFT-5568: enforce consistent Java formatting (#2581)
* use spotless plugin and google-java-format to enforce a consistent code format * add a step of spotless check before building * only run spotless on the src/ directory Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 227b6ce77..f82e8a4da 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -77,6 +77,11 @@ jobs:
sudo ln -s /usr/local/gradle/bin/gradle /usr/local/bin
gradle --version
+ - name: Run spotlessCheck
+ run: |
+ cd lib/java
+ gradle spotlessCheck
+
- name: Run bootstrap
run: ./bootstrap.sh