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

tests: run rpc tests on a single node #1

tests: run rpc tests on a single node

tests: run rpc tests on a single node #1

---
name: Task - Rpc Tests
on:
workflow_dispatch:
workflow_call:
jobs:
rpc-tests:
runs-on: ubuntu-latest
env:
BINARY_PATH: ../target/release/madara
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
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
- name: Run rpc native test
run: |
./target/release/madara setup --chain=dev
run: |-
./target/release/madara --dev --sealing=manual --execution=Native &
while ! echo exit | nc localhost 9944; do sleep 1; done
cd starknet-rpc-test
cargo test
ps aux | grep -i ./target/release/madara | awk '{print $2}' | xargs sudo kill -9
- name: Run rpc wasm test
run: |-
./target/release/madara --dev --sealing=manual --execution=Wasm &
while ! echo exit | nc localhost 9944; do sleep 1; done
cd starknet-rpc-test
cargo test
ps aux | grep -i ./target/release/madara | awk '{print $2}' | xargs sudo kill -9