This repository has been archived by the owner on Jul 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 854
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce a new crate `integration-tests` to do integration tests of the rest of the crates with geth. This crate contains a binary used to generate data for the geth dev blockchain, and groups of integration tests. For now we only have the `rpc` test group. See `integration-tests/README.md` for more details. Add a github action workflow that runs the integration test for the bus-mapping rpc methods. The action runs the `run.sh` integration test script by steps to make it easier to see how long steps take, and to quickly find which step fails in case of an error. bus-mapping: Add `get_code_by_address` rpc method. bus-mapping: Set the fields in the types returned by `get_proof` public, and move them to `eth_types`. Co-authored by: NoCtrlZ <phantomofrotten@gmail.com>
- Loading branch information
Showing
18 changed files
with
682 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened, ready_for_review] | ||
|
||
jobs: | ||
integration-tests: | ||
if: github.event.pull_request.draft == false | ||
|
||
name: Integration Tests | ||
runs-on: ubuntu-latest | ||
|
||
defaults: | ||
run: | ||
working-directory: ./integration-tests | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
override: false | ||
- name: Set PATH | ||
run: echo "${HOME}/bin" >> $GITHUB_PATH | ||
- name: Install Solc | ||
run: | | ||
mkdir -p "$HOME/bin" | ||
wget -q https://github.com/ethereum/solidity/releases/download/v0.8.0/solc-static-linux -O $HOME/bin/solc | ||
chmod u+x "$HOME/bin/solc" | ||
solc --version | ||
# Run an initial build in a sepparate step to split the build time from execution time | ||
- name: Build gendata bin | ||
run: cargo build --bin gen_blockchain_data | ||
- run: ./run.sh --steps "setup" | ||
- run: ./run.sh --steps "gendata" | ||
- run: ./run.sh --steps "tests" --tests "rpc" | ||
- run: ./run.sh --steps "cleanup" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ members = [ | |
"bus-mapping", | ||
"keccak256", | ||
"geth-utils", | ||
"integration-tests", | ||
] | ||
|
||
[patch.crates-io] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
gendata_output.json |
Oops, something went wrong.