mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-01-04 22:43:08 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a12da5cca3 |
34
.github/workflows/ci.yaml
vendored
34
.github/workflows/ci.yaml
vendored
@ -31,25 +31,25 @@ jobs:
|
|||||||
|
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
|
|
||||||
- name: Start codex-factory
|
# - name: Start codex-factory
|
||||||
run: npx codex-factory start latest &
|
# run: npx codex-factory start latest &
|
||||||
|
|
||||||
- name: Wait for first SP to be started
|
# - name: Wait for first SP to be started
|
||||||
run: |
|
# run: |
|
||||||
MAX_RETRIES=$((TIMEOUT_SECONDS / SLEEP_INTERVAL))
|
# MAX_RETRIES=$((TIMEOUT_SECONDS / SLEEP_INTERVAL))
|
||||||
echo "Waiting for $URL (timeout: ${TIMEOUT_SECONDS}s)..."
|
# echo "Waiting for $URL (timeout: ${TIMEOUT_SECONDS}s)..."
|
||||||
|
|
||||||
for i in $(seq 1 $MAX_RETRIES); do
|
# for i in $(seq 1 $MAX_RETRIES); do
|
||||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000")
|
# STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000")
|
||||||
if [ "$STATUS" = "200" ]; then
|
# if [ "$STATUS" = "200" ]; then
|
||||||
echo "Codex is ready"
|
# echo "Codex is ready"
|
||||||
exit 0
|
# exit 0
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
sleep $SLEEP_INTERVAL
|
# sleep $SLEEP_INTERVAL
|
||||||
done
|
# done
|
||||||
|
|
||||||
echo "Timed out after ${TIMEOUT_SECONDS}s waiting for $URL"
|
# echo "Timed out after ${TIMEOUT_SECONDS}s waiting for $URL"
|
||||||
exit 1
|
# exit 1
|
||||||
|
|
||||||
- run: npm test
|
# - run: npm test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user