forked from pingcap/tispark
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ADD:add verify.yml in workflow contains fmt,build and ut * ADD:add excludes in maven-surefire-plugin so that the integration test can be excluded with command line * ADD:add sonatype config * MOD:increase instanceCap and reduce resourceRequest in integration_test to improve parallelism * MOD:remove test PartitionTableSuite for takes too much time * MOD:mod mvn-scalafmt plugin's annotation * Revert "MOD:mod mvn-scalafmt plugin's annotation" This reverts commit 2ecb400. * MOD:add integration_test's namespace and remove idleMinutes * trigger GitHub actions * Revert "MOD:add integration_test's namespace and remove idleMinutes" This reverts commit 1353b3f. * MOD:add integration_test's namespace and remove idleMinutes * trigger github action * MOD:mod veridy.yml,check if support ipv6
- Loading branch information
1 parent
ebfc4b2
commit cc000b4
Showing
4 changed files
with
91 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# this workflow contains fmt,build,ut fot tikv-client | ||
name: verify | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
fmt: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: fmt | ||
run: | | ||
export LC_ALL=en_US.UTF-8 | ||
export LANG=en_US.UTF-8 | ||
export LANGUAGE=en_US.UTF-8 | ||
mvn mvn-scalafmt_2.12:format -Dscalafmt.skip=false -B | ||
mvn com.coveo:fmt-maven-plugin:format -B | ||
git diff --quiet | ||
formatted="$?" | ||
if [[ "${formatted}" -eq 1 ]] | ||
then | ||
echo "code format error, please run the following commands:" | ||
echo " mvn mvn-scalafmt_2.12:format -Dscalafmt.skip=false" | ||
echo " mvn com.coveo:fmt-maven-plugin:format" | ||
exit 1 | ||
fi | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: build | ||
run: | | ||
mvn clean package -Dmaven.test.skip=true -B | ||
tikv-client-ut: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
cache: maven | ||
- name: ut | ||
run: | | ||
lsmod | grep -qw ipv6 && mvn test -am -pl tikv-client -DsomeModule.test.excludes="**/txn/*" -B || mvn test -am -pl tikv-client -DsomeModule.test.excludes="**/txn/*,**/PDClientTest.java" -B |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
build = "mvn" | ||
|
||
ignoreFiles = """ | ||
assembly/** | ||
db-random-test/** | ||
spark-wrapper/** | ||
tikv-client/target/** | ||
core/target/** | ||
**/build/** | ||
""" | ||
|
||
tools = [ "infer", "findsecbugs","errorprone" ] | ||
|
||
jdk11 = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters