mirror of
https://github.com/logos-storage/logos-storage-js.git
synced 2026-01-02 13:33:07 +00:00
parent
26a3caacc8
commit
a12da5cca3
34
.github/workflows/ci.yaml
vendored
34
.github/workflows/ci.yaml
vendored
@ -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
|
||||
|
||||
10
package-lock.json
generated
10
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@codex-storage/sdk-js",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@codex-storage/sdk-js",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"valibot": "^1.0.0"
|
||||
@ -1255,9 +1255,9 @@
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/brace-expansion": {
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
|
||||
"integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",
|
||||
"integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@codex-storage/sdk-js",
|
||||
"version": "0.1.2",
|
||||
"version": "0.1.3",
|
||||
"description": "Codex SDK to interact with the Codex decentralized storage network.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user