Skip to content

Commit

Permalink
wip: Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Jan 18, 2024
1 parent f3667f5 commit fb2cde0
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,25 +131,13 @@ jobs:
cp LICENSE ./mithril-client-wasm/
wasm-pack pack mithril-client-wasm/pkg
- name: Build a fake aggregator
shell: bash
run: cargo build -p mithril-aggregator-fake

- name: Start a fake aggregator
shell: bash
run: |
cargo run -p mithril-aggregator-fake -- -p 8000 &
# Wait for the server to be ready with a timeout of 60 seconds
timeout=60
start_time=$(date +%s)
while ! nc -z localhost 8000; do
current_time=$(date +%s)
elapsed_time=$((current_time - start_time))
if [ "$elapsed_time" -ge "$timeout" ]; then
echo "Timeout: Failed to connect to localhost:8000 after $timeout seconds."
exit 1
fi
sleep 1
done
run: cargo run -p mithril-aggregator-fake -- -p 8000 &

- name: Test 'mithril-client-wasm' - Chrome
shell: bash
Expand Down

0 comments on commit fb2cde0

Please sign in to comment.