Skip to content

Commit

Permalink
Merge pull request #9 from ComposableFi/andor0/verify-parachain-heade…
Browse files Browse the repository at this point in the history
…rs-4
  • Loading branch information
seunlanlege authored Apr 14, 2022
2 parents 02a40ad + f519b6a commit 93011a5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ jobs:
- name: Prepare a test environment
run: docker-compose up -d

- name: Wait when the node will be started
timeout-minutes: 5
run: |
./scripts/wait_polkadot_launch.sh
- name: Run Test
run: |
docker run --rm -v$(pwd):/build -e "NODE_ENDPOINT=ws://composable:9944" --workdir /build --network beefy-client_default composablefi/ci-linux:production cargo test
Expand Down
11 changes: 11 additions & 0 deletions scripts/wait_polkadot_launch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

while true; do
sleep 1
stdout=$(docker-compose logs --tail=1 | grep "POLKADOT LAUNCH COMPLETE")
if [ -z "$stdout" ]; then
true
else
exit 0
fi
done

0 comments on commit 93011a5

Please sign in to comment.