-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added makefile for docker image * added workflow and command * testing ci * testing ci * testing ci * testing ci * separated simapp step on workflow * concat 2 steps * added checkout * added checkout * small improvement on errors and fix on plugin deps * improvement over job steps * moved rosetta CLI exec to shell script * added rosetta install command to shell script * added rosetta install command to shell script * added rosetta install command to shell script * separated installation from rosetta-cli to another step * separated installation from rosetta-cli to another step * reduced CLI max indexc * added call to check for blockchain status * added await * added inmemory to rosetta cli * changed rosseta server and CLI ports to 8081 * fix check step * checking rosetta block endpoint * fix on plugin prefix * changed error message generation according to linter suggestions * fixed go.mod leaking dependencies issues * added step to use go version 1.21
- Loading branch information
Showing
10 changed files
with
216 additions
and
2,044 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: rosetta-cli-test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
pull_request: | ||
merge_group: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
run-simapp: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/setup-go@v4 | ||
with: | ||
go-version: '^1.21.1' | ||
- name: Get cosmos-sdk repo | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: cosmos/cosmos-sdk | ||
ref: main | ||
- name: set up simapp | ||
run: make build && export SIMD_BIN=./build/simd && make init-simapp | ||
- name: Run simapp | ||
run: ./build/simd start & | ||
- name: Check blockchain status | ||
run: curl localhost:26657/status | ||
- name: Checkout back to rosetta | ||
uses: actions/checkout@v3 | ||
- name: Build Rosetta | ||
run: go mod tidy && make rosetta && make plugin | ||
- name: Run Rosetta service | ||
run: ./rosetta --blockchain "cosmos" --network "cosmos" --tendermint "tcp://localhost:26657" --addr "localhost:8081" --grpc "localhost:9090" & | ||
- name: Check rosetta status | ||
run: curl localhost:8081/block | ||
- name: Test rosetta through Rosetta-cli | ||
run: make rosetta-cli |
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
Oops, something went wrong.