transaction: Add batch_mutate interface (#418) #388
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
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
name: CI | |
jobs: | |
check: | |
name: check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.x' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v1.4.0 | |
- name: make check | |
run: make check | |
- name: Catch unexpected changes in the generated code | |
run: | | |
git diff --exit-code | |
unit-test: | |
name: unit test | |
env: | |
CARGO_INCREMENTAL: 0 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.x' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v1.4.0 | |
- name: unit test | |
run: make unit-test | |
integration-test: | |
name: integration test | |
env: | |
CARGO_INCREMENTAL: 0 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Protoc | |
uses: arduino/setup-protoc@v1 | |
with: | |
version: '3.x' | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Rust Cache | |
uses: Swatinem/rust-cache@v1.4.0 | |
- name: install tiup | |
run: curl --proto '=https' --tlsv1.2 -sSf https://tiup-mirrors.pingcap.com/install.sh | sh | |
- name: start tiup playground | |
run: | | |
# use latest stable version | |
~/.tiup/bin/tiup install tikv pd | |
~/.tiup/bin/tiup playground --mode tikv-slim --kv 3 --without-monitor --kv.config config/tikv.toml --pd.config config/pd.toml & | |
while :; do | |
echo "waiting cluster to be ready" | |
[[ "$(curl -I http://127.0.0.1:2379/pd/api/v1/regions 2>/dev/null | head -n 1 | cut -d$' ' -f2)" -ne "405" ]] || break | |
sleep 1 | |
done | |
- name: integration test | |
run: MULTI_REGION=1 make integration-test |