diff options
author | a1012112796 <1012112796@qq.com> | 2023-05-19 03:48:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-18 19:48:47 +0000 |
commit | 25d4f95df25dae5226e96e813dde87b071d9155e (patch) | |
tree | fe3d716a241838ff37423db6959f8b06c0bd7548 /tests | |
parent | 1e1e8b5d43a36aa788ce0973fa57ac6df648cbd0 (diff) | |
download | gitea-25d4f95df25dae5226e96e813dde87b071d9155e.tar.gz gitea-25d4f95df25dae5226e96e813dde87b071d9155e.zip |
replace `drone exec` to `act_runner exec` in test README.md (#24791)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/e2e/README.md | 4 | ||||
-rw-r--r-- | tests/integration/README.md | 21 | ||||
-rw-r--r-- | tests/integration/README_ZH.md | 20 |
3 files changed, 39 insertions, 6 deletions
diff --git a/tests/e2e/README.md b/tests/e2e/README.md index 2d9a0ab8fd..bf444ddb80 100644 --- a/tests/e2e/README.md +++ b/tests/e2e/README.md @@ -22,9 +22,9 @@ npx playwright install-deps ``` -## Run all tests via local drone +## Run all tests via local act_runner ``` -drone exec --local --build-event "pull_request" +act_runner exec -W ./.github/workflows/pull-e2e-tests.yml --event=pull_request --default-actions-url="https://github.com" -i catthehacker/ubuntu:runner-latest ``` ## Run sqlite e2e tests diff --git a/tests/integration/README.md b/tests/integration/README.md index 636949df38..f4e0061314 100644 --- a/tests/integration/README.md +++ b/tests/integration/README.md @@ -15,9 +15,26 @@ Make sure to perform a clean build before running tests: make clean build ``` -## Run all tests via local drone +## Run tests via local act_runner + +### Run all jobs + +``` +act_runner exec -W ./.github/workflows/pull-db-tests.yml --event=pull_request --default-actions-url="https://github.com" -i catthehacker/ubuntu:runner-latest ``` -drone exec --local --build-event "pull_request" + +Warning: This file defines many jobs, so it will be resource-intensive and therefor not recommended. + +### Run single job + +```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> +``` + +You can list all job names via: + +```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 ``` ## Run sqlite integration tests 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 数据库进行集成测试 |