mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:40:58 -05:00
improve testing & reduce noise
This commit is contained in:
parent
579d09787e
commit
d479e59b59
2 changed files with 7 additions and 4 deletions
4
testdata/run.sh
vendored
4
testdata/run.sh
vendored
|
@ -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
|
||||||
|
|
7
testdata/try-setup-forgejo.yml
vendored
7
testdata/try-setup-forgejo.yml
vendored
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue