Skip to content

Commit

Permalink
Cleaning up workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
san-est committed Jun 14, 2024
1 parent a8fcbdb commit dc5bea4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/deploy-hardhat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit dc5bea4

Please sign in to comment.