feat: rosetta-cli test #21
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 && ls && export SIMD_BIN=./build/simd && make init-simapp && ./build/simd start & | |
run-rosetta: | |
runs-on: ubuntu-latest | |
needs: run-simapp | |
strategy: | |
fail-fast: false | |
matrix: | |
go-arch: ["amd64"] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-go@v4 | |
with: | |
go-version: "1.20" | |
check-latest: true | |
- name: Build | |
run: GOARCH=${{ matrix.go-arch }} make build | |
- name: Build Rosetta | |
run: 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: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Rosetta-cli setup & test | |
run: make rosetta-cli |