-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into db/testing-verification
- Loading branch information
Showing
373 changed files
with
18,789 additions
and
7,057 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1 @@ | ||
* @danipopes @evalir @mattsse | ||
|
||
crates/anvil/ @danipopes @mattsse @evalir | ||
crates/cheatcodes/ @danipopes @mattsse @klkvr @evalir | ||
crates/evm/coverage/ @onbjerg | ||
crates/fmt/ @rkrasiuk | ||
crates/linking/ @klkvr | ||
crates/macros/ @danipopes | ||
crates/script/ @danipopes @mattsse @klkvr | ||
crates/wallets/ @klkvr | ||
* @danipopes @klkvr @mattsse |
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,7 @@ | ||
#!/usr/bin/env bash | ||
set -eo pipefail | ||
|
||
# We have to ignore at shell level because testdata/ is not a valid Foundry project, | ||
# so running `forge fmt` with `--root testdata` won't actually check anything | ||
shopt -s extglob | ||
cargo run --bin forge -- fmt "$@" $(find testdata -name '*.sol' ! -name Vm.sol) |
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 |
---|---|---|
|
@@ -14,24 +14,22 @@ concurrency: | |
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
TARGET_RUST_VERSION: "nightly-2024-07-19" | ||
|
||
jobs: | ||
doctests: | ||
name: doc tests | ||
doctest: | ||
runs-on: ubuntu-22.04-github-hosted-16core | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly-2024-04-28 | ||
toolchain: ${{ env.TARGET_RUST_VERSION }} | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: cargo test | ||
run: cargo test --doc -p forge -p [email protected] | ||
env: | ||
RUST_TEST_THREADS: 2 | ||
run: cargo test --doc -p forge | ||
|
||
clippy: | ||
name: clippy | ||
|
@@ -47,42 +45,40 @@ jobs: | |
env: | ||
RUSTFLAGS: -Dwarnings | ||
|
||
fmt: | ||
name: fmt | ||
rustfmt: | ||
runs-on: ubuntu-22.04-github-hosted-16core | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly-2024-04-28 | ||
toolchain: ${{ env.TARGET_RUST_VERSION }} | ||
components: rustfmt | ||
- run: cargo fmt --all --check | ||
|
||
forge-fmt: | ||
name: forge fmt | ||
runs-on: ubuntu-22.04-github-hosted-16core | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly-2024-04-28 | ||
toolchain: ${{ env.TARGET_RUST_VERSION }} | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- name: forge fmt | ||
run: cargo run --bin forge -- fmt --check testdata/ | ||
shell: bash | ||
run: ./.github/scripts/format.sh --check | ||
|
||
feature-checks: | ||
name: feature checks | ||
crate-checks: | ||
runs-on: ubuntu-22.04-github-hosted-16core | ||
timeout-minutes: 60 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly-2024-04-28 | ||
toolchain: ${{ env.TARGET_RUST_VERSION }} | ||
- uses: taiki-e/install-action@cargo-hack | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
|
@@ -91,7 +87,6 @@ jobs: | |
run: cargo hack check | ||
|
||
zk-cargo-test: | ||
name: zk-cargo-test | ||
runs-on: ubuntu-22.04-github-hosted-16core | ||
|
||
steps: | ||
|
@@ -104,7 +99,7 @@ jobs: | |
- name: Install Rust | ||
uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
with: | ||
toolchain: nightly-2024-04-28 | ||
toolchain: ${{ env.TARGET_RUST_VERSION }} | ||
|
||
- name: Run era-test-node | ||
uses: dutterbutter/era-test-node-action@v1 | ||
|
@@ -115,13 +110,13 @@ jobs: | |
logFilePath: era_test_node.log | ||
target: x86_64-unknown-linux-gnu | ||
releaseTag: v0.1.0-alpha.25 | ||
|
||
- name: Run zk tests | ||
env: | ||
RUST_BACKTRACE: full | ||
TEST_MAINNET_URL: http://localhost:8011 | ||
run: cargo test zk | ||
|
||
check-ci-install: | ||
name: CI install | ||
runs-on: ubuntu-latest | ||
|
@@ -132,4 +127,3 @@ jobs: | |
cd /tmp && curl -L https://raw.githubusercontent.com/matter-labs/foundry-zksync/main/install-foundry-zksync | bash | ||
- name: Verify installation | ||
run: forge --version | ||
|
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,5 +4,3 @@ out/ | |
out.json | ||
.idea | ||
.vscode | ||
bloat* | ||
install.log |
Oops, something went wrong.