Skip to content

Commit

Permalink
chore: add e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
yeshan333 committed May 18, 2024
1 parent dac916a commit e235e49
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/e2e_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: E2E tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -38,8 +39,14 @@ jobs:
scoop install vfox
- name: add vfox-etcd plugin
if: runner.os == 'Windows'
run: |
vfox add --source https://github.com/version-fox/vfox-etcd/archive/$env:GITHUB_REF.zip etcd
- name: add vfox-etcd plugin
if: runner.os != 'Windows'
run: |
vfox add --source https://github.com/version-fox/vfox-etcd/archive/refs/heads/main.zip etcd
vfox add --source https://github.com/version-fox/vfox-etcd/archive/${GITHUB_REF}.zip etcd
- name: install etcd by vfox-etcd plugin (Linux)
if: runner.os == 'Linux'
Expand Down Expand Up @@ -72,4 +79,19 @@ jobs:
echo "===============PATH==============="
echo $env:PATH
echo "===============PATH==============="
etcd -version
etcd -version
- name: install etcd with failpoint by vfox-etcd plugin (Linux)
if: runner.os == 'Linux'
run: |
vfox install [email protected]
vfox use -g [email protected]
eval "$(vfox activate bash)"
echo "===============PATH==============="
echo $PATH
echo "===============PATH==============="
etcd -version
export BUILD_WITH_FAILPOINT=yes
export GOFAIL_HTTP="127.0.0.1:22381"
nohup etcd &>/dev/null &
curl http://127.0.0.1:22381

0 comments on commit e235e49

Please sign in to comment.