-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0eb0faa
commit bca00fc
Showing
4 changed files
with
93 additions
and
69 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 |
---|---|---|
|
@@ -54,6 +54,35 @@ jobs: | |
check-udeps: false | ||
rust-toolchain: stable | ||
|
||
test_bundler: | ||
name: Test with mock bundler | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- run: rustup update stable && rustup default stable | ||
- run: cd irn && docker compose up -d | ||
- run: docker compose up -d redis postgres | ||
- run: docker compose -f docker-compose.mock-bundler.yaml up -d | ||
working-directory: test/scripts/forked_state | ||
- run: while ! curl localhost:5432/health; do sleep 1; done # Postgres | ||
- run: while ! curl localhost:6379/health; do sleep 1; done # Redis | ||
- run: while ! curl localhost:8545/health; do sleep 1; done # Anvil | ||
- run: while ! curl localhost:4337/health; do sleep 1; done # Mock Bundler | ||
- run: while ! curl localhost:3000/ping; do sleep 1; done # Mock Paymaster | ||
- run: cargo test --features=test-mock-bundler --lib --bins | ||
env: | ||
RPC_PROXY_POSTGRES_URI: "postgres://postgres@localhost/postgres" | ||
RPC_PROXY_PROVIDER_INFURA_PROJECT_ID: "" | ||
RPC_PROXY_PROVIDER_POKT_PROJECT_ID: "" | ||
RPC_PROXY_PROVIDER_QUICKNODE_API_TOKENS: "" | ||
RPC_PROXY_PROVIDER_PIMLICO_API_KEY: "" | ||
RPC_PROXY_PROVIDER_SOLSCAN_API_V1_TOKEN: "" | ||
RPC_PROXY_PROVIDER_SOLSCAN_API_V2_TOKEN: "" | ||
|
||
merge_check: | ||
name: Merge Check | ||
needs: [ check_pr, ci ] | ||
|
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,23 @@ | ||
services: | ||
anvil: | ||
image: ghcr.io/foundry-rs/foundry:nightly-96105b4d240681c336e063eac0e250cc51a84414 | ||
restart: unless-stopped | ||
ports: ["8545:8545"] | ||
entrypoint: [ "anvil", "--fork-url", "https://gateway.tenderly.co/public/sepolia", "--host", "0.0.0.0", "--block-time", "0.1", "--gas-price", "1", "--silent", "--hardfork", "prague" ] | ||
platform: linux/amd64 | ||
|
||
mock-paymaster: | ||
image: ghcr.io/pimlicolabs/mock-verifying-paymaster:main | ||
restart: unless-stopped | ||
ports: ["3000:3000"] | ||
environment: | ||
- ALTO_RPC=http://alto:4337 | ||
- ANVIL_RPC=http://anvil:8545 | ||
|
||
alto: | ||
image: ghcr.io/pimlicolabs/mock-alto-bundler:main | ||
restart: unless-stopped | ||
ports: ["4337:4337"] | ||
environment: | ||
- ANVIL_RPC=http://anvil:8545 | ||
- SKIP_DEPLOYMENTS=true |
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