add race tests (#149)

Signed-off-by: disksing <i@disksing.com>

Co-authored-by: Shirly <AndreMouche@126.com>
This commit is contained in:
disksing 2021-06-23 17:21:16 +08:00 committed by GitHub
parent 91f6353565
commit 2db51094d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 0 deletions

View File

@ -23,6 +23,21 @@ jobs:
run: go test -v
working-directory: integration_tests
integration-local-race:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Test
run: go test -v -race
working-directory: integration_tests
integration-tikv:
runs-on: ubuntu-latest
steps:

View File

@ -20,6 +20,19 @@ jobs:
- name: Test
run: go test -v ./...
race-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
- name: Test with race
run: go test -v -race ./...
golangci:
runs-on: ubuntu-latest
steps: