Skip to content

Commit cd00a12

Browse files
committed
add the workflow to automatic run test
1 parent 1ba26c9 commit cd00a12

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/run_test_script.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Run Shell Script
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- lab3A
8+
- lab3B
9+
- lab3C
10+
- lab3D
11+
pull_request:
12+
branches:
13+
- main
14+
schedule:
15+
- cron: '0 0 * * *' # 每天运行一次
16+
17+
jobs:
18+
run-shell-script:
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v2
24+
25+
- name: Set up permissions
26+
run: chmod +x src/raft/runtest.sh # 确保你的脚本有执行权限
27+
28+
- name: Run shell script
29+
run: ./src/raft/runtest.sh 3A 10

0 commit comments

Comments
 (0)