mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
use normal
This commit is contained in:
parent
d2d60c2b48
commit
9a42aeb8de
2 changed files with 7 additions and 7 deletions
10
.github/workflows/ci-deploy.yaml
vendored
10
.github/workflows/ci-deploy.yaml
vendored
|
|
@ -77,10 +77,14 @@ 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 }}
|
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 }}
|
labels: ${{ steps.metadata.outputs.labels }}
|
||||||
|
|
||||||
|
- name: Stop Geth Devnet
|
||||||
|
run: |
|
||||||
|
docker compose down
|
||||||
|
|
||||||
- name: Start Contracts Geth Devnet
|
- name: Start Contracts Geth Devnet
|
||||||
run: |
|
run: |
|
||||||
docker run -d \
|
docker run -d \
|
||||||
-p 8546:8545 \
|
-p 8545:8545 \
|
||||||
-p 30303:30303 \
|
-p 30303:30303 \
|
||||||
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest \
|
${{ secrets.DOCKERHUB_USERNAME }}/${{ env.REPO_NAME }}:${{ env.ENVIRONMENT }}-contracts-latest \
|
||||||
--dev \
|
--dev \
|
||||||
|
|
@ -91,8 +95,8 @@ jobs:
|
||||||
- name: Wait for Contracts Geth JSON-RPC
|
- name: Wait for Contracts Geth JSON-RPC
|
||||||
run: |
|
run: |
|
||||||
echo "Waiting for Contracts Geth to be ready..."
|
echo "Waiting for Contracts Geth to be ready..."
|
||||||
until curl -s http://localhost:8546; do sleep 1; done
|
until curl -s http://localhost:8545; do sleep 1; done
|
||||||
|
|
||||||
- name: Test Contracts
|
- name: Test Contracts
|
||||||
working-directory: ./hardhat
|
working-directory: ./hardhat
|
||||||
run: npx hardhat test test/Lock.ts --network localcontracts
|
run: npx hardhat test test/Lock.ts --network local
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,6 @@ const config: HardhatUserConfig = {
|
||||||
url: "http://127.0.0.1:8545",
|
url: "http://127.0.0.1:8545",
|
||||||
chainId: 1337
|
chainId: 1337
|
||||||
},
|
},
|
||||||
localcontracts: {
|
|
||||||
url: "http://127.0.0.1:8546",
|
|
||||||
chainId: 1337
|
|
||||||
},
|
|
||||||
node: {
|
node: {
|
||||||
url: "http:127.0.0.1:8545",
|
url: "http:127.0.0.1:8545",
|
||||||
chainId: 31337
|
chainId: 31337
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue