Merge pull request #15 from radost5454/aide_de

testttttttt
This commit is contained in:
radost5454 2025-06-04 12:40:18 +03:00 committed by GitHub
commit 6b067654c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 37 additions and 1 deletions

36
.github/workflows/ci-test.yml vendored Normal file
View 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

View file

@ -8,4 +8,4 @@ module.exports = {
}, },
}, },
solidity: "0.8.18", solidity: "0.8.18",
}; };