From dc5bea46cca7d877387c3c0ee6e52528155a05ed Mon Sep 17 00:00:00 2001 From: san-est Date: Fri, 14 Jun 2024 14:25:47 +0300 Subject: [PATCH] Cleaning up workflow --- .github/workflows/deploy-hardhat.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-hardhat.yml b/.github/workflows/deploy-hardhat.yml index 95ed256ebff7..6a04c66fef76 100644 --- a/.github/workflows/deploy-hardhat.yml +++ b/.github/workflows/deploy-hardhat.yml @@ -42,9 +42,9 @@ jobs: docker exec devnet ls /workspace/hardhat docker exec devnet ls -l /workspace/hardhat docker exec devnet ls -l /workspace - #steps were added so i can troublshoot if the folder is mounted properly + #steps were added so i can troublshoot and see if the folder is mounted properly - - name: Installing Node.js, npm and local hardhat so that hardhat sample can run + - name: Installing Node.js and npm run: | docker exec devnet apk add --no-cache nodejs npm @@ -54,13 +54,15 @@ jobs: - name: Verify if Hardhat is installed run: | docker exec devnet npx hardhat --version - docker exec devnet npx hardhat --version - name: Deploy hardhat sample project run: | - docker exec devnet sh -c "cd /workspace/hardhat && npx hardhat test" docker exec devnet sh -c "cd /workspace/hardhat && npx hardhat ignition deploy ./ignition/modules/Lock.js" + - name: Testing contracts + run: | + docker exec devnet sh -c "cd /workspace/hardhat && npx hardhat test" + - name: Build a new docker image run: | docker commit devnet go-eth-hardhat:latest