update hacking instructions
This commit is contained in:
parent
1f16f269ac
commit
79d373b859
1 changed files with 17 additions and 14 deletions
31
README.md
31
README.md
|
@ -27,23 +27,25 @@ git clone https://code.forgejo.org/actions/setup-forgejo
|
|||
export PATH=$(pwd)/setup-forgejo:$PATH
|
||||
git clone https://code.forgejo.org/forgejo/end-to-end
|
||||
cd end-to-end
|
||||
forgejo-curl.sh logout
|
||||
forgejo-runner.sh teardown
|
||||
forgejo.sh teardown
|
||||
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.21
|
||||
forgejo-runner.sh setup
|
||||
export url=http://root:admin1234@$(cat forgejo-ip):3000
|
||||
export token=$(cat forgejo-token)
|
||||
export DIR=/tmp/end-to-end
|
||||
```
|
||||
### Run a single test
|
||||
|
||||
Run one example
|
||||
|
||||
```sh
|
||||
export example=pull-request
|
||||
export EXAMPLE_DIR=$(pwd)/actions/example-$example
|
||||
sudo rm -fr /srv/example-$example ; mkdir /srv/example-$example
|
||||
$EXAMPLE_DIR/setup.sh
|
||||
$EXAMPLE_DIR/run.sh
|
||||
forgejo-test-helper.sh run_workflow actions/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token)
|
||||
actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1_22 cron # runs actions/example-cron
|
||||
```
|
||||
|
||||
Cleanup
|
||||
|
||||
```sh
|
||||
actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1_22 none
|
||||
```
|
||||
|
||||
Run all examples for v1_22
|
||||
|
||||
```sh
|
||||
actions/run.sh https://codeberg.org/forgejo-experimental/forgejo/releases/download/v1.22.0-test/forgejo-1.22.0-test-linux-amd64 v1_22
|
||||
```
|
||||
|
||||
### Remote testing
|
||||
|
@ -54,5 +56,6 @@ the number of cases run by the
|
|||
**none** they are not run at all for that version of Forgejo. If
|
||||
it does not exist, all tests are run.
|
||||
|
||||
* `V1_22_TESTS`
|
||||
* `V1_21_TESTS`
|
||||
* `V1_20_TESTS`
|
||||
|
|
Loading…
Add table
Reference in a new issue