Skip to content

Commit

Permalink
feat : updated ci for testing bridge (#7)
Browse files Browse the repository at this point in the history
* feat : updated ci for testing bridge

* feat : updated ci for testing bridge

* feat : updated ci for testing bridge

* feat : updated ci for testing bridge

* feat : updated ci for testing bridge

* feat : updated ci for testing bridge

* feat : updated ci for testing bridge

* feat : updated ci test

* feat : updated commands for background run

* feat : updated commands for background run

* feat : updated commands for background run
  • Loading branch information
ocdbytes authored Aug 6, 2024
1 parent 56b7579 commit ae771e0
Show file tree
Hide file tree
Showing 22 changed files with 100,682 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,8 @@ jobs:
name: Run Cargo linters
uses: ./.github/workflows/linters-cargo.yml
needs: rust_build

test_bridge:
name: Test Bridge
uses: ./.github/workflows/test-bridge.yml
needs: rust_build
36 changes: 36 additions & 0 deletions .github/workflows/test-bridge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Task - Test Bridge

on:
workflow_dispatch:
workflow_call:

jobs:
test_bridge:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3

# selecting a toolchain either by action or manual `rustup` calls should happen
# before the plugin, as the cache uses the current rustc version as its cache key
- run: rustup show

- uses: Swatinem/rust-cache@v2

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

- name: Run anvil
run: |
anvil </dev/null &>/dev/null &
- name: Run madara
run: |
cd bin
echo "Running madara...."
./run_madara.sh
- name: Run tests
run: |
echo "Running test...."
RUST_LOG=info cargo test -- --nocapture
5 changes: 5 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,8 @@ in our context.
- `ERC20 token bridge (starkgate)` : Contract for Token bridge.
- `OpenZeppelinAccount (legacy : starknet)` : Contract used for declaring a temp account for declaring V1
contract that will be used to deploy the user account with provided private key in env.

> [!IMPORTANT]
> For testing in Github CI we are using the madara binary build with
> `--disable-fee-flag`. The source for madara code :
> <https://github.com/karnotxyz/madara/tree/madara-ci-build>
Loading

0 comments on commit ae771e0

Please sign in to comment.