fix: add health check for mock Forgejo server readiness
Some checks failed
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
ci/woodpecker/pr/smoke-init Pipeline failed

This commit is contained in:
Agent 2026-04-02 11:10:34 +00:00
parent b9314694cd
commit 73a4cbe9f0

View file

@ -13,5 +13,5 @@ steps:
commands: commands:
- apk add --no-cache bash curl jq git coreutils - apk add --no-cache bash curl jq git coreutils
- python3 tests/mock-forgejo.py & - python3 tests/mock-forgejo.py &
- sleep 2 - for i in $(seq 1 30); do curl -sf http://localhost:3000/api/v1/version >/dev/null 2>&1 && break || sleep 1; done
- bash tests/smoke-init.sh - bash tests/smoke-init.sh