Skip to content

Commit

Permalink
EVM integration tests (#1241)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
jewei1997 and stevenlanders authored Jan 17, 2024
1 parent 68e8db0 commit 6268c21
Show file tree
Hide file tree
Showing 9 changed files with 13,732 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ jobs:
"python3 integration_test/scripts/runner.py integration_test/chain_operation/snapshot_operation.yaml",
"python3 integration_test/scripts/runner.py integration_test/chain_operation/statesync_operation.yaml"
]

},
{
name: "Distribution Module",
Expand All @@ -92,12 +91,22 @@ jobs:
"python3 integration_test/scripts/runner.py integration_test/upgrade_module/minor_upgrade_test.yaml"
]
},
{
name: "Hardhat tests",
scripts: [
"python3 integration_test/scripts/runner.py integration_test/evm_module/hardhat_test.yaml",
"./scripts/hardhat.sh"
]
},
]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/setup-node@v2
with:
node-version: '16'

- name: Pyyaml
run: |
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ yarn.lock
# node ignores
oracle/node_modules/
node_modules/
package-lock.json
*/package-lock.json

# test coverage output
c.out
Expand Down
Loading

0 comments on commit 6268c21

Please sign in to comment.