mirror of https://github.com/tikv/client-go.git
branch name related changes (#146)
Signed-off-by: disksing <i@disksing.com>
This commit is contained in:
parent
d63c289bcc
commit
b384d7156c
|
|
@ -2,9 +2,9 @@ name: Compatibility Test
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ v2 ]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ v2 ]
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
|
|
|
|||
|
|
@ -2,9 +2,9 @@ name: Integration Test
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ v2 ]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ v2 ]
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,41 +0,0 @@
|
|||
name: Lint
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- v*
|
||||
pull_request:
|
||||
jobs:
|
||||
golangci:
|
||||
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: Lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
|
||||
version: v1.29
|
||||
|
||||
# Optional: working directory, useful for monorepos
|
||||
# working-directory: somedir
|
||||
|
||||
# Optional: golangci-lint command line arguments.
|
||||
# args: --issues-exit-code=0
|
||||
|
||||
# Optional: show only new issues if it's a pull request. The default value is `false`.
|
||||
# only-new-issues: true
|
||||
|
||||
# Optional: if set to true then the action will use pre-installed Go.
|
||||
# skip-go-installation: true
|
||||
|
||||
# Optional: if set to true then the action don't cache or restore ~/go/pkg.
|
||||
# skip-pkg-cache: true
|
||||
|
||||
# Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
|
||||
# skip-build-cache: true
|
||||
|
|
@ -2,9 +2,9 @@ name: Unit Test
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ v2 ]
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ v2 ]
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
test:
|
||||
|
|
@ -19,3 +19,19 @@ jobs:
|
|||
|
||||
- name: Test
|
||||
run: go test -v ./...
|
||||
|
||||
golangci:
|
||||
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: Lint
|
||||
uses: golangci/golangci-lint-action@v2
|
||||
with:
|
||||
version: v1.29
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ TiKV Go Client provides support for interacting with the [TiKV](https://github.c
|
|||
|
||||
There are 2 major versions of the `client-go` package.
|
||||
|
||||
- `v2` is the new stable and active version. This version was extracted from [pingcap/tidb](https://github.com/pingcap/tidb) and it includes new TiKV features like Follower Read, 1PC, Async Commit. The development of this version is on the `v2` branch. The documentation for this version is below.
|
||||
- `v2` is the new stable and active version. This version was extracted from [pingcap/tidb](https://github.com/pingcap/tidb) and it includes new TiKV features like Follower Read, 1PC, Async Commit. The development of this version is on the `master` branch. The documentation for this version is below.
|
||||
|
||||
- `v1` is the previous stable version and is only maintained for bug fixes. You can read the documentation [here](https://tikv.org/docs/4.0/reference/clients/go/).
|
||||
|
||||
|
|
@ -24,7 +24,7 @@ There are 2 major versions of the `client-go` package.
|
|||
go get github.com/tikv/client-go/v2@COMMIT_HASH_OR_TAG_VERSION
|
||||
```
|
||||
|
||||
More examples can be found in [examples directory](https://github.com/tikv/client-go/tree/v2/examples).
|
||||
More examples can be found in [examples directory](https://github.com/tikv/client-go/tree/master/examples).
|
||||
|
||||
## Contributing to client-go
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue