Skip to content

Commit

Permalink
Previous commit actually work; update CI in this commit
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeniy-scherbina committed Aug 12, 2024
1 parent 824e01b commit 46ba6a3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/scripts/kava-localnet-ci/construction.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

# downloading cli
curl -sSfL https://raw.githubusercontent.com/coinbase/rosetta-cli/master/scripts/install.sh | sh -s v0.10.0

echo "start check:construction"
./bin/rosetta-cli --configuration-file rosetta-cli-conf/kava-testnet-ci/config.json check:construction
18 changes: 18 additions & 0 deletions .github/scripts/kava-localnet-ci/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

make run-local &
make run-local-offline &

sleep 5

block_tip=($(curl -s --location --request POST 'http://localhost:8000/network/status' \
--header 'Content-Type: application/json' \
--data-raw '{
"network_identifier": {
"blockchain": "Kava",
"network": "kava-localnet"
}
}' | python3 -c 'import json,sys;obj=json.load(sys.stdin);print(obj["current_block_identifier"]["index"])'))

echo "latest block index is", $block_tip

9 changes: 9 additions & 0 deletions .github/workflows/process_kava_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,13 @@ jobs:
run: KAVA_RPC_URL=http://localhost:26657 NETWORK=kava-local PORT=4000 SKIP_LIVE_NODE_TESTS=true make test-integration
working-directory: ./rosetta-kava

- name: Download cli
run: "curl -sSfL https://raw.githubusercontent.com/coinbase/rosetta-cli/master/scripts/install.sh | sh -s"

- name: Start rosetta server
run: ${GITHUB_WORKSPACE}/rosetta-kava/.github/scripts/kava-localnet-ci/setup.sh
shell: bash

- name: Run Check:construction test
run: ${GITHUB_WORKSPACE}/rosetta-kava/.github/scripts/kava-localnet-ci/construction.sh
shell: bash

0 comments on commit 46ba6a3

Please sign in to comment.