THRIFT-5568: Add CI formatting/test checks for Java and Kotlin (#2599)

Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>
This commit is contained in:
Jiayu Liu 2022-05-07 08:35:09 +08:00 committed by GitHub
parent 6c002b61e5
commit bcac978ce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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