improve testing & reduce noise

This commit is contained in:
Earl Warren 2023-03-25 23:07:01 +01:00
parent 579d09787e
commit d479e59b59
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
2 changed files with 7 additions and 4 deletions

4
testdata/run.sh vendored
View file

@ -25,11 +25,11 @@ function wait_success() {
local repo="$2" local repo="$2"
local sha="$3" local sha="$3"
for i in $(seq 180); do for i in $(seq 40); do
if check_status "$forgejo" "$repo" "$sha"; then if check_status "$forgejo" "$repo" "$sha"; then
break break
fi fi
sleep 1 sleep 5
done done
if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then
cat forgejo-runner.log cat forgejo-runner.log

View file

@ -8,6 +8,9 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- id: forgejo - id: forgejo
uses: SELF/setup-forgejo@vTest uses: SELF/setup-forgejo@vTest
- run: with:
image-version: 1.19
- run: |
set -ex set -ex
echo ${{ steps.forgejo.outputs.url }} | grep :3000 curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19