From e6bc001ab88d77f1a78c0d4dc7ae75e3706efa76 Mon Sep 17 00:00:00 2001 From: Dimitar Manov <99065541+dimitarmanov@users.noreply.github.com> Date: Wed, 11 Jun 2025 13:54:54 +0300 Subject: [PATCH] test --- .github/workflows/ci-deploy.yaml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-deploy.yaml b/.github/workflows/ci-deploy.yaml index 497000a3f1..a2cf7ac81b 100644 --- a/.github/workflows/ci-deploy.yaml +++ b/.github/workflows/ci-deploy.yaml @@ -26,7 +26,10 @@ jobs: - name: Start Geth Devnet run: | docker compose up -d - echo "Waiting for Geth JSON-RPC..." + + - name: Wait for Geth JSON-RPC + run: | + echo "Waiting for Geth to be ready..." until curl -s http://localhost:8545; do sleep 1; done - name: Install Node Modules @@ -74,17 +77,20 @@ jobs: tags: ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest,${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-${{ steps.autotag.outputs.tag }} labels: ${{ steps.metadata.outputs.labels }} - - name: Start Geth Devnet + - name: Start Contracts Geth Devnet run: | - docker run -it --rm  - -p 8546:8545 - -p 30303:30303 - ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest - --dev \ - --http --http.addr 0.0.0.0 - --http.api eth,net,web3,personal - --allow-insecure-unlock - echo "Waiting for Geth JSON-RPC..." + docker run -d + -p 8546:8545 + -p 30303:30303 + ${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest + --dev + --http --http.addr 0.0.0.0 + --http.api eth,net,web3 + --allow-insecure-unlock + + - name: Wait for Contracts Geth JSON-RPC + run: | + echo "Waiting for Contracts Geth to be ready..." until curl -s http://localhost:8546; do sleep 1; done - name: Test Contracts