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 8cbb50f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/scripts/kava-localnet-ci/construction.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

echo "start check:construction"
./bin/rosetta-cli --configuration-file ${GITHUB_WORKSPACE}/rosetta-kava/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

18 changes: 15 additions & 3 deletions .github/workflows/process_kava_dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,23 @@ jobs:
- name: Wait until kava node is ready to serve traffic
run: bash ${GITHUB_WORKSPACE}/rosetta-kava/.github/scripts/wait-for-node-init.sh

# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

- name: Run integration tests
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"
working-directory: ./rosetta-kava

- name: Setup tmate session
uses: mxschmitt/action-tmate@v3

- name: Start rosetta server
run: .github/scripts/kava-localnet-ci/setup.sh
shell: bash
working-directory: ./rosetta-kava

- name: Run Check:construction test
run: .github/scripts/kava-localnet-ci/construction.sh
shell: bash
working-directory: ./rosetta-kava

0 comments on commit 8cbb50f

Please sign in to comment.