mirror of
https://github.com/Suxiaoqinx/Netease_url.git
synced 2026-12-01 17:28:35 +08:00
test: wait for Docker service readiness
This commit is contained in:
@@ -31,7 +31,7 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Build image and check dependencies
|
||||
run: |
|
||||
@@ -46,8 +46,9 @@ jobs:
|
||||
--publish 127.0.0.1:5000:5000 \
|
||||
--mount "type=bind,src=$RUNNER_TEMP/netease-cookie.txt,dst=/app/cookie.txt,readonly" \
|
||||
netease-url:smoke
|
||||
curl --fail --silent --show-error --retry 30 --retry-connrefused \
|
||||
--retry-delay 1 --max-time 5 http://127.0.0.1:5000/health > health.json
|
||||
curl --fail --silent --show-error --retry 30 --retry-all-errors \
|
||||
--retry-delay 1 --retry-max-time 60 --max-time 5 \
|
||||
--output health.json http://127.0.0.1:5000/health
|
||||
python3 - <<'PY'
|
||||
import json
|
||||
with open('health.json') as response:
|
||||
|
||||
Reference in New Issue
Block a user