From d479e59b5970a7a686881a3d1665df4e9a1de2e4 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sat, 25 Mar 2023 23:07:01 +0100 Subject: [PATCH] improve testing & reduce noise --- testdata/run.sh | 4 ++-- testdata/try-setup-forgejo.yml | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/testdata/run.sh b/testdata/run.sh index 941fbd8..63f8a27 100755 --- a/testdata/run.sh +++ b/testdata/run.sh @@ -25,11 +25,11 @@ function wait_success() { local repo="$2" local sha="$3" - for i in $(seq 180); do + for i in $(seq 40); do if check_status "$forgejo" "$repo" "$sha"; then break fi - sleep 1 + sleep 5 done if ! test "$(check_status "$forgejo" "$repo" "$sha")" = "success" ; then cat forgejo-runner.log diff --git a/testdata/try-setup-forgejo.yml b/testdata/try-setup-forgejo.yml index a7b67a0..e948e63 100644 --- a/testdata/try-setup-forgejo.yml +++ b/testdata/try-setup-forgejo.yml @@ -8,6 +8,9 @@ jobs: - uses: actions/checkout@v3 - id: forgejo uses: SELF/setup-forgejo@vTest - - run: + with: + image-version: 1.19 + - run: | set -ex - echo ${{ steps.forgejo.outputs.url }} | grep :3000 + curl ${{ steps.forgejo.outputs.url }}/api/forgejo/v1/version | grep 1.19 +