-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run kava e2e tests before check:data
- Loading branch information
1 parent
8c780ad
commit f4fee76
Showing
2 changed files
with
21 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ jobs: | |
# and default branch will be used instead | ||
ref: ${{ github.event.client_payload.ref }} | ||
path: kava | ||
submodules: 'true' | ||
|
||
- name: Print rosetta version | ||
run: | | ||
|
@@ -51,12 +52,6 @@ jobs: | |
git rev-parse HEAD | ||
working-directory: ./kava | ||
|
||
- name: Checkout kvtool | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: Kava-Labs/kvtool | ||
path: kvtool | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -76,7 +71,7 @@ jobs: | |
|
||
- name: Install kvtool | ||
run: make install | ||
working-directory: ./kvtool | ||
working-directory: ./kava/tests/e2e/kvtool | ||
|
||
- name: Run kava docker container | ||
run: KAVA_TAG=local kvtool t bootstrap | ||
|
@@ -88,6 +83,21 @@ 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 | ||
|
||
# Run kava e2e tests to simulate load before running "rosetta-cli check:data" | ||
# Tests are run against already running kava node, details: https://github.com/Kava-Labs/kava/blob/master/tests/e2e/.env.live-network-example | ||
- name: Run kava e2e tests | ||
run: make test-e2e | ||
working-directory: ./kava | ||
env: | ||
# E2E_RUN_KVTOOL_NETWORKS must be false to trigger run on live network | ||
E2E_RUN_KVTOOL_NETWORKS: false | ||
# Configure the endpoints for connecting to the running network here. | ||
E2E_KAVA_RPC_URL: "http://localhost:26657" | ||
E2E_KAVA_GRPC_URL: "http://localhost:9090" | ||
E2E_KAVA_EVM_RPC_URL: "http://localhost:8545" | ||
# E2E_INCLUDE_IBC_TESTS is not currently supported for running tests against a live network. | ||
E2E_INCLUDE_IBC_TESTS: false | ||
|
||
- name: Download coinbase rosetta-cli | ||
run: "curl -sSfL https://raw.githubusercontent.com/coinbase/rosetta-cli/master/scripts/install.sh | sh -s" | ||
working-directory: ./rosetta-kava | ||
|
@@ -109,7 +119,9 @@ jobs: | |
|
||
- name: Send slack notification if job failed | ||
uses: slackapi/[email protected] | ||
if: ${{ failure() }} | ||
# send slack notification only if workflow was triggered by repository_dispatch event | ||
# if it was triggered by commit to rosetta-kava repo - there is no point to alert, it's visible in rosetta-kava CI | ||
if: ${{ failure() && github.event_name == 'repository_dispatch' }} | ||
with: | ||
channel-id: ${{ vars.SLACK_CHANNEL_ID }} | ||
slack-message: "Rosetta-kava CI failed, details: https://github.com/Kava-Labs/rosetta-kava/actions/runs/${{github.run_id}}" | ||
|