mirror of
https://code.forgejo.org/actions/cascading-pr
synced 2025-03-14 22:36:58 +01:00
runner capacity must be at least two jobs
otherwise the cascading pr job will never run and the original pr will stay stuck until it timesout
This commit is contained in:
parent
601c93ef62
commit
84c728fdc5
3 changed files with 32 additions and 3 deletions
|
@ -19,5 +19,5 @@ jobs:
|
|||
|
||||
- name: tests
|
||||
run: |
|
||||
test/run.sh --debug --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }}
|
||||
|
||||
FORGEJO_RUNNER_CONFIG=$(pwd)/tests/runner-config.yaml forgejo-runner.sh reload
|
||||
tests/run.sh --debug --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }}
|
||||
|
|
|
@ -62,7 +62,7 @@ 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
|
||||
FORGEJO_RUNNER_CONFIG=$(pwd)/tests/runner-config.yaml forgejo-runner.sh setup
|
||||
url=http://$(cat forgejo-ip):3000
|
||||
firefox $url
|
||||
tests/run.sh --debug
|
||||
|
|
29
tests/runner-config.yaml
Normal file
29
tests/runner-config.yaml
Normal file
|
@ -0,0 +1,29 @@
|
|||
log:
|
||||
level: debug
|
||||
|
||||
runner:
|
||||
file: .runner
|
||||
capacity: 4
|
||||
env_file: .env
|
||||
timeout: 3h
|
||||
insecure: false
|
||||
fetch_timeout: 5s
|
||||
fetch_interval: 2s
|
||||
labels: []
|
||||
|
||||
cache:
|
||||
enabled: false
|
||||
dir: ""
|
||||
host: ""
|
||||
port: 0
|
||||
|
||||
container:
|
||||
network: "bridge"
|
||||
privileged: false
|
||||
options:
|
||||
workdir_parent:
|
||||
valid_volumes: []
|
||||
docker_host: ""
|
||||
|
||||
host:
|
||||
workdir_parent:
|
Loading…
Add table
Reference in a new issue