update HACKING instructions

This commit is contained in:
Earl Warren 2023-10-22 17:25:03 +02:00
parent 28c365c695
commit d92b2a7d3e
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 21 additions and 7 deletions

View file

@ -92,6 +92,20 @@ The test environment consists of the following (all users password is admin1234)
* An unprivileged user user2
* The repository user2/destinationrepo
```sh
git clone https://code.forgejo.org/actions/setup-forgejo
export PATH=$(pwd)/setup-forgejo:$PATH
git clone https://code.forgejo.org/actions/cascading-pr
cd cascading-pr
forgejo-curl.sh logout
forgejo-runner.sh teardown
forgejo.sh teardown
forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.21
FORGEJO_RUNNER_CONFIG=$(pwd)/tests/runner-config.yaml forgejo-runner.sh setup
url=http://$(cat forgejo-ip):3000
firefox $url
```
The test for a successful run of the cascading-pr action consists of:
* creating a PR from branch1 to main