mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2024-12-18 03:42:09 +03:00
Merge pull request 'tests: it make take time for Forgejo to come up' (#329) from earl-warren/runner:wip-test-retry into main
Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/329 Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
This commit is contained in:
commit
54cfdd7065
1 changed files with 2 additions and 2 deletions
|
@ -54,8 +54,8 @@ jobs:
|
||||||
- name: check the forgejo server is responding
|
- name: check the forgejo server is responding
|
||||||
run: |
|
run: |
|
||||||
apt-get update -qq
|
apt-get update -qq
|
||||||
apt-get install -y -qq jq curl
|
apt-get install -y -qq jq curl retry
|
||||||
test $FORGEJO_ADMIN_USER = $(curl -sS http://$FORGEJO_ADMIN_USER:$FORGEJO_ADMIN_PASSWORD@$FORGEJO_HOST_PORT/api/v1/user | jq --raw-output .login)
|
retry --delay=1 --times=60 bash -c 'test $FORGEJO_ADMIN_USER = $(curl -sS http://$FORGEJO_ADMIN_USER:$FORGEJO_ADMIN_PASSWORD@$FORGEJO_HOST_PORT/api/v1/user | jq --raw-output .login)'
|
||||||
|
|
||||||
- run: make FORGEJO_URL=http://$FORGEJO_HOST_PORT test
|
- run: make FORGEJO_URL=http://$FORGEJO_HOST_PORT test
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue