feat: rosetta-cli test #30
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
name: rosetta-cli-test | |
on: | |
push: | |
branches: | |
- main | |
- release/** | |
pull_request: | |
merge_group: | |
permissions: | |
contents: read | |
jobs: | |
run-simapp: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone supercharge website repository | |
uses: actions/checkout@v2 | |
- name: Clone supercharge docs repository | |
uses: actions/checkout@v2 | |
with: | |
repository: cosmos/cosmos-sdk | |
ref: main | |
- name: set up simapp | |
run: make build && export SIMD_BIN=./build/simd && make init-simapp && ./build/simd start & | |
run-rosetta: | |
runs-on: ubuntu-latest | |
needs: run-simapp | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: review | |
run: cat ./plugins/cosmos-hub/main.go | |
- name: Build Rosetta | |
run: go mod tidy && make rosetta && make plugin && ./rosetta --blockchain "cosmos" --network "cosmos" --tendermint "tcp://localhost:26657" --addr "localhost:8080" --grpc "localhost:9090 &" | |
run-rosetta-cli-tests: | |
runs-on: ubuntu-latest | |
needs: run-rosetta | |
strategy: | |
fail-fast: true | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rosetta-cli setup & test | |
run: make rosetta-cli |