forked from keep-starknet-strange/madara
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 988 Bytes
/
starknet-js-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Starknet-js Compatibility Tests
on:
workflow_dispatch:
workflow_call:
jobs:
test:
runs-on: ubuntu-latest
env:
BINARY_PATH: ../target/release/madara
steps:
- uses: actions/checkout@v3
- 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 dev chain
run: |
./target/release/madara setup --chain=dev --from-local=configs
- name: Run starknet-js test
run: |-
./target/release/madara --dev &
MADARA_RUN_PID=$!
while ! echo exit | nc localhost 9944; do sleep 1; done
git clone https://github.com/keep-starknet-strange/sequencer-js-compatibility-tests.git
cd sequencer-js-compatibility-tests
npm install
npm test
kill $MADARA_RUN_PID