Compare commits

..

1 Commits

Author SHA1 Message Date
Arnaud
a12da5cca3
Prepare release (#24)
* Prepare release

* Temporary disable ci
2025-08-27 11:54:50 +02:00

View File

@ -31,25 +31,25 @@ jobs:
- run: npm ci
- name: Start codex-factory
run: npx codex-factory start latest &
# - name: Start codex-factory
# run: npx codex-factory start latest &
- name: Wait for first SP to be started
run: |
MAX_RETRIES=$((TIMEOUT_SECONDS / SLEEP_INTERVAL))
echo "Waiting for $URL (timeout: ${TIMEOUT_SECONDS}s)..."
# - name: Wait for first SP to be started
# run: |
# MAX_RETRIES=$((TIMEOUT_SECONDS / SLEEP_INTERVAL))
# echo "Waiting for $URL (timeout: ${TIMEOUT_SECONDS}s)..."
for i in $(seq 1 $MAX_RETRIES); do
STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000")
if [ "$STATUS" = "200" ]; then
echo "Codex is ready"
exit 0
fi
# for i in $(seq 1 $MAX_RETRIES); do
# STATUS=$(curl -s -o /dev/null -w "%{http_code}" "$URL" || echo "000")
# if [ "$STATUS" = "200" ]; then
# echo "Codex is ready"
# exit 0
# fi
sleep $SLEEP_INTERVAL
done
# sleep $SLEEP_INTERVAL
# done
echo "Timed out after ${TIMEOUT_SECONDS}s waiting for $URL"
exit 1
# echo "Timed out after ${TIMEOUT_SECONDS}s waiting for $URL"
# exit 1
- run: npm test
# - run: npm test