Skip to content

Commit f606ce0

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 6c69ba2 commit f606ce0

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
@@ -69,7 +69,6 @@ jobs:
6969
"python3 integration_test/scripts/runner.py integration_test/chain_operation/snapshot_operation.yaml",
7070
"python3 integration_test/scripts/runner.py integration_test/chain_operation/statesync_operation.yaml"
7171
]
72-
7372
},
7473
{
7574
name: "Distribution Module",
@@ -98,6 +97,13 @@ jobs:
9897
"docker exec sei-node-0 integration_test/contracts/deploy_wasm_contracts.sh",
9998
"docker exec sei-node-0 integration_test/contracts/create_tokenfactory_denoms.sh",
10099
"python3 integration_test/scripts/runner.py integration_test/seidb/state_store_test.yaml",
100+
],
101+
},
102+
{
103+
name: "Hardhat tests",
104+
scripts: [
105+
"python3 integration_test/scripts/runner.py integration_test/evm_module/hardhat_test.yaml",
106+
"./scripts/hardhat.sh"
101107
]
102108
},
103109
]
@@ -106,6 +112,9 @@ jobs:
106112
- uses: actions/setup-python@v4
107113
with:
108114
python-version: '3.10'
115+
- uses: actions/setup-node@v2
116+
with:
117+
node-version: '16'
109118

110119
- name: Pyyaml
111120
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)