mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-25 06:06:44 +00:00
testttttttt
This commit is contained in:
parent
cd01048ec6
commit
86c2857b2d
2 changed files with 37 additions and 1 deletions
36
.github/workflows/ci-test.yml
vendored
Normal file
36
.github/workflows/ci-test.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
name: Test Against Deployed Devnet
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test_contracts:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Pull devnet-with-contracts image
|
||||
run: docker pull ghcr.io/${{ github.repository_owner }}/go-ethereum:devnet-with-contracts
|
||||
|
||||
- name: Start devnet-with-contracts container
|
||||
run: |
|
||||
docker run -d --name geth-devnet-test -p 8545:8545 \
|
||||
ghcr.io/${{ github.repository_owner }}/go-ethereum:devnet-with-contracts \
|
||||
geth --http --http.addr 0.0.0.0 --http.port 8545 --http.api eth,net,web3 --dev
|
||||
|
||||
- name: Wait for Geth RPC to be ready
|
||||
run: |
|
||||
for i in {1..10}; do
|
||||
curl -s http://localhost:8545 && break
|
||||
echo "Waiting for Geth RPC..." && sleep 3
|
||||
done
|
||||
|
||||
- name: Install Hardhat dependencies
|
||||
working-directory: hardhat
|
||||
run: npm install
|
||||
|
||||
- name: Run Hardhat tests against devnet-with-contracts
|
||||
working-directory: hardhat
|
||||
run: npx hardhat test --network localhost
|
||||
|
|
@ -8,4 +8,4 @@ module.exports = {
|
|||
},
|
||||
},
|
||||
solidity: "0.8.18",
|
||||
};
|
||||
};
|
||||
Loading…
Reference in a new issue