1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-23 02:38:35 +00:00

replace drone exec to act_runner exec in test README.md (#24791)

This commit is contained in:
a1012112796
2023-05-19 03:48:47 +08:00
committed by GitHub
parent 1e1e8b5d43
commit 25d4f95df2
4 changed files with 44 additions and 11 deletions

View File

@@ -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
```
drone exec --local --build-event "pull_request"
act_runner exec -W ./.github/workflows/pull-db-tests.yml --event=pull_request --default-actions-url="https://github.com" -i catthehacker/ubuntu:runner-latest
```
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