diff options
author | Jiayu Liu <Jimexist@users.noreply.github.com> | 2022-05-07 08:35:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 20:35:09 -0400 |
commit | bcac978ce97e9808866ed639f88095473ba5c261 (patch) | |
tree | 0f9657a0da26872e4bdeabf8cec5c6f2b1662379 /.github | |
parent | 6c002b61e591b712fca2713eefd3e99c5782bb21 (diff) | |
download | thrift-bcac978ce97e9808866ed639f88095473ba5c261.tar.gz |
THRIFT-5568: Add CI formatting/test checks for Java and Kotlin (#2599)
Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build.yml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f82e8a4da..cc2d1c90f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,10 +1,10 @@ -name: 'Build' +name: "Build" on: push: - branches: [ '*' ] + branches: ["*"] pull_request: - branches: [ '*' ] + branches: ["*"] env: BUILD_DEPS: automake bison flex g++ git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config @@ -60,7 +60,7 @@ jobs: with: distribution: temurin java-version: 11 - cache: 'gradle' + cache: "gradle" - name: Install dependencies run: | @@ -77,11 +77,16 @@ jobs: sudo ln -s /usr/local/gradle/bin/gradle /usr/local/bin gradle --version - - name: Run spotlessCheck + - name: Run spotlessCheck for Java run: | cd lib/java gradle spotlessCheck + - name: Run ktfmtCheck for Kotlin + run: | + cd lib/kotlin + gradle ktfmtCheck + - name: Run bootstrap run: ./bootstrap.sh @@ -123,8 +128,14 @@ jobs: chmod a+x compiler/cpp/thrift compiler/cpp/thrift -version - - name: Run make java + - name: Run make for java run: make -C lib/java - - name: Run make kotlin + - name: Run make check for java + run: make -C lib/java check + + - name: Run make for kotlin run: make -C lib/kotlin + + - name: Run make check for kotlin + run: make -C lib/kotlin check |