mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
Testing deployment
This commit is contained in:
parent
433faa7b4d
commit
a266309d74
1 changed files with 6 additions and 6 deletions
12
.github/workflows/docker-deploy.yml
vendored
12
.github/workflows/docker-deploy.yml
vendored
|
|
@ -38,7 +38,6 @@ jobs:
|
||||||
|
|
||||||
- name: Running image container
|
- name: Running image container
|
||||||
run: |
|
run: |
|
||||||
echo "Workspace path: /workspace/hardhat"
|
|
||||||
docker run -d --name go-ethereum -p 8545:8545 -p 8546:8546 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
|
docker run -d --name go-ethereum -p 8545:8545 -p 8546:8546 ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
|
||||||
--dev \
|
--dev \
|
||||||
--http \
|
--http \
|
||||||
|
|
@ -55,7 +54,7 @@ jobs:
|
||||||
- name: Copying the hardhat files to the container
|
- name: Copying the hardhat files to the container
|
||||||
run: |
|
run: |
|
||||||
docker exec go-ethereum mkdir -p /workspace/hardhat
|
docker exec go-ethereum mkdir -p /workspace/hardhat
|
||||||
docker cp ${{ github.workspace }}/hardhat go-ethereum:/workspace/hardhat
|
docker cp ${{ github.workspace }}/hardhat/. go-ethereum:/workspace/hardhat
|
||||||
docker exec go-ethereum ls -larth /workspace/hardhat
|
docker exec go-ethereum ls -larth /workspace/hardhat
|
||||||
|
|
||||||
- name: Installing the required Node.js and npm
|
- name: Installing the required Node.js and npm
|
||||||
|
|
@ -68,13 +67,14 @@ jobs:
|
||||||
- name: Checking the hardhat version to verify that its working properly
|
- name: Checking the hardhat version to verify that its working properly
|
||||||
run: docker exec go-ethereum npx hardhat --version
|
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
|
- name: Deploy hardhat sample project
|
||||||
run: |
|
run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat ignition deploy ./ignition/modules/Token.js --network devnet"
|
||||||
docker exec go-ethereum sh -c "cd /LimeChainTask/go-ethereum/hardhat && yes | npx hardhat ignition deploy ./ignition/modules/Token.js --network devnet"
|
|
||||||
|
|
||||||
- name: Testing contracts
|
- name: Testing contracts
|
||||||
run: |
|
run: docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat test"
|
||||||
docker exec go-ethereum sh -c "cd /workspace/hardhat && npx hardhat test"
|
|
||||||
|
|
||||||
- name: Build a new docker image
|
- name: Build a new docker image
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue