From 014ba36a4d9a9f3d5a3f1778f9e7ffa295a0d512 Mon Sep 17 00:00:00 2001 From: disksing Date: Sat, 3 Jul 2021 03:30:50 +0800 Subject: [PATCH] ci: simplify ci output (#211) Signed-off-by: disksing --- .github/workflows/integration.yml | 6 +++--- .github/workflows/test.yml | 4 ++-- README.md | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index 4ba12453..96d14205 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -20,7 +20,7 @@ jobs: go-version: 1.16 - name: Test - run: go test -v + run: go test working-directory: integration_tests integration-local-race: @@ -35,7 +35,7 @@ jobs: go-version: 1.16 - name: Test - run: go test -v -race + run: go test -race working-directory: integration_tests integration-tikv: @@ -74,6 +74,6 @@ jobs: working-directory: integration_tests - name: Test - run: go test -v --with-tikv=true --pd-addrs=127.0.0.1:2379 + run: go test --with-tikv working-directory: integration_tests diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b25f5f2f..ad9b9e40 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,7 +18,7 @@ jobs: go-version: 1.16 - name: Test - run: go test -v ./... + run: go test ./... race-test: runs-on: ubuntu-latest @@ -31,7 +31,7 @@ jobs: go-version: 1.16 - name: Test with race - run: go test -v -race ./... + run: go test -race ./... golangci: runs-on: ubuntu-latest diff --git a/README.md b/README.md index 080ef601..609a65fa 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ Note: All the following tests are included in the [CI](https://github.com/tikv/c To run unit tests, use following command ```bash -go test -v ./... +go test ./... ``` To run code linter, make sure `golangci-lint` is [installed](https://golangci-lint.run/usage/install/#local-installation). Then use following command @@ -56,7 +56,7 @@ sleep 5 ./tikv-server & sleep 10 cd integration_tests -go test -v --with-tikv=true --pd-addrs=127.0.0.1:2379 +go test --with-tikv ``` ### Test with TiDB @@ -72,7 +72,7 @@ go mod edit -replace=github.com/tikv/client-go/v2=/path/to/client-go If you want to push your TiDB code to GitHub for running CI or for code review, you need to change the client-go used by TiDB to your developing branch using the following steps: ```bash -go get -d github.com/GITHUB_USERNAME/client-go@DEV_BRANCH +go get -d github.com/GITHUB_USERNAME/client-go/v2@DEV_BRANCH # Output: # go get: github.com/GITHUB_USERNAME/client-go/v2@none updating to # github.com/GITHUB_USERNAME/client-go/v2@v2.0.0-XXXXXXXXXXXXXX-XXXXXXXXXXXX: parsing go.mod: