From 372dcb3c1c87de12497cd8abb19a37dcae7de380 Mon Sep 17 00:00:00 2001 From: denislav-mladenov Date: Wed, 17 Jul 2024 21:58:39 +0300 Subject: [PATCH] Testing deployment --- .github/workflows/docker-deploy.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-deploy.yml b/.github/workflows/docker-deploy.yml index 7d921143d2..01d0b90147 100644 --- a/.github/workflows/docker-deploy.yml +++ b/.github/workflows/docker-deploy.yml @@ -51,6 +51,9 @@ jobs: --ws.origins "*" \ --ws.api personal,db,eth,net,web3 + - name: Wait for the Ethereum node to be ready + run: sleep 15 + - name: Copying the hardhat files to the container run: | docker exec go-ethereum mkdir -p /workspace/hardhat @@ -64,14 +67,14 @@ jobs: - name: Installation of hardhat run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npm install --save-dev hardhat" - - name: Checking the hardhat version to verify that its working properly + - name: Checking the hardhat version to verify that it's working properly run: docker exec go-ethereum npx hardhat --version - name: Verify Hardhat project run: docker exec go-ethereum sh -c "cd /workspace/hardhat && ls -larth && cat hardhat.config.js" - name: Deploy hardhat sample project - run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat ignition deploy ./ignition/modules/Token.js --network devnet" + run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat run scripts/deploy.js --network devnet" - name: Testing contracts run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat test"