Skip to content

Commit 700eaf6

Browse files
committed
feat: add retry mechanism for test execution across platforms
1 parent 17953cb commit 700eaf6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,17 @@ jobs:
2727
cmake -G "MinGW Makefiles" .. -DENABLE_SSL=OFF
2828
make
2929
cd ..
30-
./bin/test_bin.exe
30+
wget https://raw.githubusercontent.com/chenxuan520/gh-action-shell/main/cmd_retry.ps1
31+
./cmd_retry.ps1 ./bin/test_bin.exe 2
3132
3233
- name: Run test #需要执行的命令
3334
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
3435
run: |
3536
cd src
3637
./build.sh
37-
./bin/test_bin
38+
wget https://raw.githubusercontent.com/chenxuan520/gh-action-shell/main/cmd_retry.sh
39+
chmod +x ./cmd_retry.sh
40+
./cmd_retry.sh ./bin/test_bin 2
3841
3942
- name: Run Memory Check
4043
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)