diff --git a/.github/workflows/bindings-ts.yml b/.github/workflows/bindings-ts.yml index fd8b6d747..e7cbe0359 100644 --- a/.github/workflows/bindings-ts.yml +++ b/.github/workflows/bindings-ts.yml @@ -78,15 +78,26 @@ jobs: sudo systemctl status docker.service sudo docker run hello-world shell: wsl-run {0} - - name: Run quickstart - run: | + - run: | + docker run -d --name quickstart -p 8000:8000 -e ENABLE_LOGS=true -e NETWORK=local -e ENABLE_SOROBAN_RPC=true --health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'" --health-interval 10s --health-timeout 5s --health-retries 50 stellar/quickstart:testing + if: runner.os != 'windows' + shell: bash + - run: | + until [ "`docker inspect -f {{.State.Health.Status}} quickstart`"=="healthy" ]; do + sleep 0.1; + done; + if: runner.os != 'windows' + shell: bash + - run: | docker run -d --name quickstart -p 8000:8000 -e ENABLE_LOGS=true -e NETWORK=local -e ENABLE_SOROBAN_RPC=true --health-cmd "curl --no-progress-meter --fail-with-body -X POST \"http://localhost:8000/soroban/rpc\" -H 'Content-Type: application/json' -d '{\"jsonrpc\":\"2.0\",\"id\":8675309,\"method\":\"getNetwork\"}' && curl --no-progress-meter \"http://localhost:8000/friendbot\" | grep '\"invalid_field\": \"addr\"'" --health-interval 10s --health-timeout 5s --health-retries 50 stellar/quickstart:testing - shell: ${{ matrix.sys.shell }} + if: runner.os == 'windows' + shell: wsl-run {0} - run: | until [ "`docker inspect -f {{.State.Health.Status}} quickstart`"=="healthy" ]; do sleep 0.1; done; - shell: ${{ matrix.sys.shell }} + if: runner.os == 'windows' + shell: wsl-run {0} - run: rustup update - run: cargo build - run: rustup target add wasm32-unknown-unknown