aboutsummaryrefslogtreecommitdiffstats
path: root/tests/integration/README_ZH.md
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/README_ZH.md')
-rw-r--r--tests/integration/README_ZH.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/tests/integration/README_ZH.md b/tests/integration/README_ZH.md
index 3840232472..a924892f81 100644
--- a/tests/integration/README_ZH.md
+++ b/tests/integration/README_ZH.md
@@ -12,9 +12,25 @@ make test-sqlite
make clean build
```
-## 如何在本地 drone 服务器上运行所有测试
+## 如何在本地 act_runner 上运行测试
+
+### 运行所有任务
+
+```
+act_runner exec -W ./.github/workflows/pull-db-tests.yml --event=pull_request --default-actions-url="https://github.com" -i catthehacker/ubuntu:runner-latest
+```
+
+警告:由于在此文件中定义了许多任务,因此此操作将花费太多的CPU和内存来运行。所以不建议这样做。
+
+### 运行单个任务
+
+```SHELL
+act_runner exec -W ./.github/workflows/pull-db-tests.yml --event=pull_request --default-actions-url="https://github.com" -i catthehacker/ubuntu:runner-latest -j <job_name>
```
-drone exec --local --build-event "pull_request"
+
+您可以通过以下方式列出所有任务名称:
+```SHELL
+act_runner exec -W ./.github/workflows/pull-db-tests.yml --event=pull_request --default-actions-url="https://github.com" -i catthehacker/ubuntu:runner-latest -l
```
## 如何使用 sqlite 数据库进行集成测试