-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Bing‘smacbookpro <[email protected]> Co-authored-by: David Li <[email protected]>
- Loading branch information
1 parent
3c46d0c
commit bab4457
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Etcd Client Test | ||
run-name: ${{ github.actor }} is testing out etcd client | ||
on: | ||
pull_request_target: | ||
branches: ['**'] | ||
push: | ||
branches: ['**'] | ||
|
||
jobs: | ||
regression-test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- run: echo "Get latest etcd from docker hub" | ||
- run: docker --version | ||
- run: sudo docker pull bitnami/etcd:latest | ||
- run: sudo docker network create app-tier --driver bridge | ||
- run: sudo docker run -d --name Etcd-server --network app-tier --publish 2379:2379 --publish 2380:2380 --env ALLOW_NONE_AUTHENTICATION=yes --env ETCD_ADVERTISE_CLIENT_URLS=http://etcd-server:2379 bitnami/etcd:latest | ||
- run: sudo apt install -y protobuf-compiler libprotobuf-dev | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- run: cargo --version --verbose | ||
- run: rustc --version --verbose | ||
- name: format check | ||
run: cargo fmt --check | ||
- name: clippy | ||
run: cargo clippy --all-targets -- -D warnings | ||
- name: unit test | ||
run: cargo test | ||
- run: cargo run --example kv | ||
- run: cargo run --example lease | ||
- run: cargo run --example lock | ||
- run: cargo run --example maintenance | ||
- run: cargo run --example watch | ||
- run: cargo run --example election | ||
# run: cargo run --example auth_role | ||
# run: cargo run --example auth_user | ||
# run: cargo run --example cluster |