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
|
export PATH=$(pwd)/setup-forgejo:$PATH
|
||||||
git clone https://code.forgejo.org/forgejo/end-to-end
|
git clone https://code.forgejo.org/forgejo/end-to-end
|
||||||
cd end-to-end
|
cd end-to-end
|
||||||
forgejo-curl.sh logout
|
export DIR=/tmp/end-to-end
|
||||||
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)
|
|
||||||
```
|
```
|
||||||
### Run a single test
|
|
||||||
|
Run one example
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
export example=pull-request
|
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
|
||||||
export EXAMPLE_DIR=$(pwd)/actions/example-$example
|
```
|
||||||
sudo rm -fr /srv/example-$example ; mkdir /srv/example-$example
|
|
||||||
$EXAMPLE_DIR/setup.sh
|
Cleanup
|
||||||
$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)
|
```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
|
### 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
|
**none** they are not run at all for that version of Forgejo. If
|
||||||
it does not exist, all tests are run.
|
it does not exist, all tests are run.
|
||||||
|
|
||||||
|
* `V1_22_TESTS`
|
||||||
* `V1_21_TESTS`
|
* `V1_21_TESTS`
|
||||||
* `V1_20_TESTS`
|
* `V1_20_TESTS`
|
||||||
|
|
Loading…
Add table
Reference in a new issue