Skip to content

Commit b17de03

Browse files
jewei1997stevenlanders
authored andcommitted
EVM integration tests (#1241)
* in progress * in progress * cast integration script works * remove unused script * try to get hardhat tests to run * try to get integration tests to run again * try to fix gh actionsg * fix integration gh action * another fix * add hardhat test yaml * add npm ci * comment out other integration tests * try two modules and remove node install * try without the setup-node to see if it prevented docker starting * attempt docker not in background to see log * try background again * unremove sending DONE to build.complete * remove foundry installation in docker container * remove more foundry stuff * remove cast stuff from hardhat test runner * install node v16 in integration test gh workflows * remove commented out code for calling setup_evm.sh * fix indentation in gh workflows * put in dummy verifier * add package-lock.json * have log fetching test search from block 0 to latest instead * uncomment other integration tests + polish * fix foundry test, unexpected fuzz test * call testRevert revertIfTrue in hardhat test as well --------- Co-authored-by: Steven Landers <steven.landers@gmail.com>
1 parent 4f12e62 commit b17de03

File tree

9 files changed

+13732
-3
lines changed

9 files changed

+13732
-3
lines changed

.github/workflows/integration-test.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ jobs:
7474
"python3 integration_test/scripts/runner.py integration_test/chain_operation/snapshot_operation.yaml",
7575
"python3 integration_test/scripts/runner.py integration_test/chain_operation/statesync_operation.yaml"
7676
]
77-
7877
},
7978
{
8079
name: "Distribution Module",
@@ -103,6 +102,13 @@ jobs:
103102
"docker exec sei-node-0 integration_test/contracts/deploy_wasm_contracts.sh",
104103
"docker exec sei-node-0 integration_test/contracts/create_tokenfactory_denoms.sh",
105104
"python3 integration_test/scripts/runner.py integration_test/seidb/state_store_test.yaml",
105+
],
106+
},
107+
{
108+
name: "Hardhat tests",
109+
scripts: [
110+
"python3 integration_test/scripts/runner.py integration_test/evm_module/hardhat_test.yaml",
111+
"./scripts/hardhat.sh"
106112
]
107113
},
108114
]
@@ -111,6 +117,9 @@ jobs:
111117
- uses: actions/setup-python@v4
112118
with:
113119
python-version: '3.10'
120+
- uses: actions/setup-node@v2
121+
with:
122+
node-version: '16'
114123

115124
- name: Pyyaml
116125
run: |

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ yarn.lock
1919
# node ignores
2020
oracle/node_modules/
2121
node_modules/
22-
package-lock.json
23-
*/package-lock.json
2422

2523
# test coverage output
2624
c.out

0 commit comments

Comments
 (0)