mirror of https://github.com/tikv/client-go.git
parent
492aef462c
commit
014ba36a4d
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
go-version: 1.16
|
go-version: 1.16
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v
|
run: go test
|
||||||
working-directory: integration_tests
|
working-directory: integration_tests
|
||||||
|
|
||||||
integration-local-race:
|
integration-local-race:
|
||||||
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
go-version: 1.16
|
go-version: 1.16
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v -race
|
run: go test -race
|
||||||
working-directory: integration_tests
|
working-directory: integration_tests
|
||||||
|
|
||||||
integration-tikv:
|
integration-tikv:
|
||||||
|
|
@ -74,6 +74,6 @@ jobs:
|
||||||
working-directory: integration_tests
|
working-directory: integration_tests
|
||||||
|
|
||||||
- name: Test
|
- 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
|
working-directory: integration_tests
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ jobs:
|
||||||
go-version: 1.16
|
go-version: 1.16
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: go test -v ./...
|
run: go test ./...
|
||||||
|
|
||||||
race-test:
|
race-test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -31,7 +31,7 @@ jobs:
|
||||||
go-version: 1.16
|
go-version: 1.16
|
||||||
|
|
||||||
- name: Test with race
|
- name: Test with race
|
||||||
run: go test -v -race ./...
|
run: go test -race ./...
|
||||||
|
|
||||||
golangci:
|
golangci:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
|
|
@ -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
|
To run unit tests, use following command
|
||||||
|
|
||||||
```bash
|
```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
|
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 &
|
./tikv-server &
|
||||||
sleep 10
|
sleep 10
|
||||||
cd integration_tests
|
cd integration_tests
|
||||||
go test -v --with-tikv=true --pd-addrs=127.0.0.1:2379
|
go test --with-tikv
|
||||||
```
|
```
|
||||||
|
|
||||||
### Test with TiDB
|
### 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:
|
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
|
```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:
|
# Output:
|
||||||
# go get: github.com/GITHUB_USERNAME/client-go/v2@none updating to
|
# 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:
|
# github.com/GITHUB_USERNAME/client-go/v2@v2.0.0-XXXXXXXXXXXXXX-XXXXXXXXXXXX: parsing go.mod:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue