Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Testcases related to starkgate bridging #1512

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
f0dda7e
tests
anshalshukla Mar 14, 2024
d9420de
minor refactoring, add changelog
anshalshukla Mar 15, 2024
15e13c6
fix: lint
anshalshukla Mar 15, 2024
f1d45e5
save
anshalshukla Mar 16, 2024
d4e1d6e
lint
anshalshukla Mar 17, 2024
09e1679
lint
anshalshukla Mar 17, 2024
aaff3ee
lint
anshalshukla Mar 18, 2024
ff8a3b6
lint and path fix
anshalshukla Mar 19, 2024
1aa14e6
Merge branch 'main' into bridging-testcases
anshalshukla Mar 26, 2024
41906ac
feat : latest changes bridge and zaun updates
Mar 30, 2024
3fd588e
feat : lock file fix
Apr 1, 2024
34366df
Fix bridge testcases (#1)
apoorvsadana Apr 2, 2024
4fcb8c8
resolve: merge conflicts
anshalshukla Apr 2, 2024
ef11a1c
Merge branch 'main' into bridging-testcases
anshalshukla Apr 2, 2024
70a5ac7
fix: lint
anshalshukla Apr 2, 2024
37f22cc
fix: lint
anshalshukla Apr 2, 2024
9b2454a
add logs to check failure
apoorvsadana Apr 3, 2024
bdb12d2
better logs
apoorvsadana Apr 3, 2024
e113c3f
Merge branch 'main' into bridging-testcases
EvolveArt Apr 3, 2024
f1bf1e4
Merge branch 'main' into bridging-testcases
apoorvsadana Apr 4, 2024
b99b799
fix genesis.json
apoorvsadana Apr 4, 2024
bc3fe5f
fix test cases
apoorvsadana Apr 4, 2024
a093af7
fix : deps fix
Apr 5, 2024
0164885
fix : toml lint fix
Apr 5, 2024
94ce4d9
Merge branch 'main' into bridging-testcases
apoorvsadana Apr 5, 2024
935f693
feat : added e2e test
Apr 10, 2024
2d7a6da
Merge branch 'bridging-testcases' of https://github.com/anshalshukla/…
Apr 10, 2024
972ffd1
Merge branch 'main' into bridging-testcases
apoorvsadana Apr 10, 2024
465691c
feat : added e2e test
Apr 10, 2024
aa2c557
Merge branch 'bridging-testcases' of https://github.com/anshalshukla/…
Apr 10, 2024
82cdba0
feat : fixed lint and e2e test
Apr 11, 2024
831d653
feat : merge main into bridging-testcases
Apr 11, 2024
3ffd059
feat : hash verification test fix
Apr 11, 2024
619fd92
remove not needed contract from config
apoorvsadana Apr 11, 2024
d062b3d
fix : rpc and e2e test fix
Apr 12, 2024
82a17f2
fix : e2e test foundry fix
Apr 12, 2024
86fc687
fix : e2e test debug : foundry anvil
Apr 12, 2024
e761848
fix : e2e test debug : foundry anvil
Apr 12, 2024
06bd1a4
fix : e2e test debug : foundry anvil
Apr 12, 2024
0212bc8
fix : anvil priv key : e2e test
Apr 12, 2024
06ff69c
fix : lint and e2e tests
Apr 13, 2024
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
5 changes: 5 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ jobs:
uses: ./.github/workflows/starknet-rpc-tests.yml
needs: madara_commands

e2e-tests:
name: Run e2e tests
uses: ./.github/workflows/starknet-e2e-tests.yml
needs: madara_commands

starknet-js-tests:
name: Run starknet-js compatibility tests
uses: ./.github/workflows/starknet-js-tests.yml
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/starknet-e2e-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
name: Task - E2e Tests

on:
workflow_dispatch:
workflow_call:

jobs:
e2e-bridge-tests:
runs-on: ubuntu-latest
env:
BINARY_PATH: ../target/production/madara
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
shared-key: "cache"
save-if: false
- uses: actions/cache@v3
with:
path: |
target/production/madara
key:
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{
github.run_id }}
fail-on-cache-miss: true
- uses: software-mansion/setup-scarb@v1
with:
scarb-version: "2.3.1"
- name: Setup build deps
run: |
sudo apt-get update
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Run e2e tests
run: |-
export ETH_RPC_ENDPOINT="http://127.0.0.1:8545"
anvil& ANVIL_RUN_PID=$!
while ! echo exit | nc localhost 8545; do sleep 1; done
cd starknet-e2e-test
cargo test -- deposit_and_withdraw_from_erc20_bridge --exact
cargo test -- deposit_and_withdraw_from_eth_bridge --exact
cargo test -- madara_advances_ethereum_settlement_contract_state_in_sovereign_mode --exact
kill $ANVIL_RUN_PID
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -315,3 +315,4 @@
- fix: l1-l2 messaging
- dev : clean contracts and compiled files
- fix: add from_address in calldata of l1 message
- test: add starkgate related testcase
Loading
Loading