mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 00:50:56 -05:00
the HACKING section moved to end-to-end
This commit is contained in:
parent
f695aa51ff
commit
6884521975
1 changed files with 1 additions and 34 deletions
35
README.md
35
README.md
|
@ -80,39 +80,6 @@ jobs:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Hacking
|
## Documentation
|
||||||
|
|
||||||
### Documentation
|
|
||||||
|
|
||||||
Update the README from the action file with https://github.com/npalm/action-docs `action-docs --update-readme`
|
Update the README from the action file with https://github.com/npalm/action-docs `action-docs --update-readme`
|
||||||
|
|
||||||
### Local testing
|
|
||||||
|
|
||||||
To run and debug workflows from `testdata/example-*`, from
|
|
||||||
the root of the source directory, with docker and forgejo-curl.sh
|
|
||||||
installed, mimic what `.forgejo/workflows/integration.yml` does. There
|
|
||||||
may be some manual tweaking (such as creating temporary directories)
|
|
||||||
because the tests run as root, but they do not need to run as root.
|
|
||||||
|
|
||||||
* `forgejo-curl.sh logout`
|
|
||||||
* `forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.21`
|
|
||||||
* `firefox http://$(cat forgejo-ip):3000`
|
|
||||||
* `forgejo-runner.sh setup`
|
|
||||||
* `export example=pull-request`
|
|
||||||
* `export EXAMPLE_DIR=$(pwd)/testdata/example-$example`
|
|
||||||
* `$EXAMPLE_DIR/setup.sh` # if it exists
|
|
||||||
* `$EXAMPLE_DIR/run.sh` or
|
|
||||||
* `forgejo-test-helper.sh run_workflow testdata/example-$example http://root:admin1234@$(cat forgejo-ip):3000 root example-$example setup-forgejo $(cat forgejo-token)`
|
|
||||||
* `forgejo-runner.sh teardown`
|
|
||||||
* `forgejo.sh teardown`
|
|
||||||
|
|
||||||
### Remote testing
|
|
||||||
|
|
||||||
To reduce the runtime the following variables can be set to control
|
|
||||||
the number of cases run by the
|
|
||||||
[integration](.forgejo/workflows/integration.yml) tests. If set to
|
|
||||||
**none** they are not run at all for that version of Forgejo. If
|
|
||||||
it does not exist, all tests are run.
|
|
||||||
|
|
||||||
* `V1_21_TESTS`
|
|
||||||
* `V1_20_TESTS`
|
|
||||||
|
|
Loading…
Reference in a new issue