Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: E2E Integration Tests

# Runs on every PR as a non-blocking check.

on:
pull_request:

jobs:
e2e:
name: Integration / E2E Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1

- name: Install Dependencies
run: pnpm install

- name: Build TypeScript
run: pnpm build

- name: Build EVM contracts
run: pnpm build:contracts:evm

- name: E2E tests
env:
# pick a free rpc provider from https://chainlist.org/
FORK_URL: https://api.zan.top/eth-mainnet
run: pnpm run test:integration
2 changes: 1 addition & 1 deletion jest.integration.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ module.exports = {
'^bn.js$': 'bn.js',
'^bignumber.js$': 'bignumber.js',
'^@solana/web3.js$': '@solana/web3.js',
'(.+)\\.js': '$1'
'(.+)\\.js$': '$1'
}
}
2 changes: 1 addition & 1 deletion tests/utils/setup-evm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async function startNode(
.withCommand([
`anvil -f ${forkUrl} --chain-id ${chainId} --mnemonic 'hat hat horse border print cancel subway heavy copy alert eternal mask' --host 0.0.0.0`
])
.withWaitStrategy(new LogWaitStrategy('Listening on 0.0.0.0:8545', 1))
.withWaitStrategy(new LogWaitStrategy('Listening on', 1))
.withName(`anvil_cross_chain_tests_${chainId}_${randBigInt(100n)}`)
.start()

Expand Down
Loading