diff --git a/.github/workflows/test-bridge.yml b/.github/workflows/test-bridge.yml new file mode 100644 index 0000000..c4b1a94 --- /dev/null +++ b/.github/workflows/test-bridge.yml @@ -0,0 +1,40 @@ +--- +name: Task - Build Rust + +on: + workflow_dispatch: + workflow_call: + push: + branches: + - "feat/bridge-tests" + - "main" + +jobs: + rust_build: + runs-on: ubuntu-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 madara + run: | + cd bin + echo "Running madara...." + ./run_madara.sh + + - name: Run anvil + run: | + anvil + + - name: Run tests + run: | + echo "Running test...." + cargo test --nocapture diff --git a/Readme.md b/Readme.md index 3aca151..b6cf4da 100644 --- a/Readme.md +++ b/Readme.md @@ -120,3 +120,9 @@ 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 : +>