File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : E2E tests
2+
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ workflow_dispatch :
8+
9+ jobs :
10+ e2e_tests :
11+ strategy :
12+ matrix :
13+ # ref: https://github.com/actions/runner-images
14+ os : [ubuntu-latest]
15+ runs-on : ${{ matrix.os }}
16+ steps :
17+ - uses : actions/checkout@v4
18+
19+ - uses : actions/setup-go@v5
20+ with :
21+ go-version : ' ^1.24.2' # The Go version to download (if necessary) and use.
22+
23+ - name : build & install vfox (Unix-like)
24+ if : runner.os != 'Windows'
25+ run : |
26+ git clone https://github.com/version-fox/vfox.git
27+ cd vfox
28+ go build -o vfox
29+ chmod +x vfox
30+ cp vfox /usr/local/bin
31+
32+ - name : add vfox-chaosblade plugin
33+ if : runner.os != 'Windows'
34+ run : |
35+ vfox add --source https://github.com/${{ github.repository_owner }}/vfox-chaosblade/archive/${GITHUB_REF}.zip chaosblade
36+
37+ - name : install chaosblade by vfox-chaosblade plugin (Linux)
38+ if : runner.os == 'Linux'
39+ run : |
40+ vfox install chaosblade@1.7.4
41+ vfox use -g chaosblade@1.7.4
42+ eval "$(vfox activate bash)"
43+ echo "===============PATH==============="
44+ echo $PATH
45+ echo "===============PATH==============="
46+ status=$(blade -v | grep 1.7.4)
47+ if [ -z "$status" ]; then
48+ echo "chaosblade version is not 1.7.4"
49+ exit 1
50+ else
51+ echo "chaosblade version 1.7.4 installed successfully"
52+ fi
You can’t perform that action at this time.
0 commit comments