File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 9797 -p 1200:1200 \
9898 rsshub:latest
9999
100+ - name : Wait for RSSHub startup
101+ if : (env.TEST_CONTINUE)
102+ env :
103+ TEST_BASEURL : http://localhost:1200
104+ run : |
105+ set -euo pipefail
106+ healthcheck_url="$TEST_BASEURL/healthz"
107+
108+ for _ in $(seq 1 30); do
109+ if curl --silent --show-error --fail "$healthcheck_url" >/dev/null; then
110+ exit 0
111+ fi
112+
113+ if [ "$(docker inspect -f '{{.State.Status}}' rsshub 2>/dev/null)" != 'running' ]; then
114+ docker logs rsshub || true
115+ echo "rsshub container exited before becoming ready"
116+ exit 1
117+ fi
118+
119+ sleep 1
120+ done
121+
122+ docker logs rsshub || true
123+ echo "Timed out waiting for RSSHub health check: $healthcheck_url"
124+ exit 1
125+
100126 - name : Generate feedback
101127 if : (env.TEST_CONTINUE)
102128 id : generate-feedback
You can’t perform that action at this time.
0 commit comments