Skip to content

Commit

Permalink
ci: run test on the pull request branch
Browse files Browse the repository at this point in the history
Signed-off-by: tison <wander4096@gmail.com>
  • Loading branch information
tisonkun committed Jul 8, 2024
1 parent 0835bf0 commit 99838b5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
name: Etcd Client Test
run-name: ${{ github.actor }} is testing out etcd client
on:
pull_request_target:
branches: ['**']
pull_request:
branches: [ '**' ]
push:
branches: ['**']
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 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
uses: actions/checkout@v4
- run: cargo --version --verbose
- run: rustc --version --verbose
- name: format check
Expand Down

0 comments on commit 99838b5

Please sign in to comment.