This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 293
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
Showing
34 changed files
with
564 additions
and
178 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 |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
name: Task - DA Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
rpc-tests: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
da-layer: | ||
- ethereum | ||
- celestia | ||
- avail | ||
env: | ||
BINARY_PATH: ../target/release/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/release/madara | ||
key: | ||
${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}-${{ | ||
github.run_id }} | ||
fail-on-cache-miss: true | ||
- name: Setup build deps | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y clang llvm libudev-dev protobuf-compiler | ||
- name: Setup dev chain | ||
run: | | ||
./target/release/madara setup --chain=dev --from-local=configs | ||
- name: Run DA Layer | ||
run: | | ||
bash ./scripts/da_devnet.sh ${{ matrix.da_layer }} | ||
- name: Run DA tests | ||
run: |- | ||
./target/release/madara --dev --da-layer ${{ matrix.da_layer }} --da-conf examples/da-confs/${{ matrix.da_layer }}.json & | ||
MADARA_RUN_PID=$! | ||
while ! echo exit | nc localhost 9944; do sleep 1; done | ||
cd da-test | ||
DA_LAYER=${{ matrix.da_layer }} cargo test | ||
kill $MADARA_RUN_PID | ||
- name: Stop DA Layer | ||
run: | | ||
bash ./scripts/stop_da_devnet.sh ${{ matrix.da_layer }} |
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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
target | ||
cairo-contracts/build | ||
madara-app | ||
madara-tsukuyomi | ||
madara-dev-explorer | ||
madara-docs | ||
madara-infra | ||
zaun |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.