-
Notifications
You must be signed in to change notification settings - Fork 3
55 lines (52 loc) · 1.5 KB
/
rosetta-cli-test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.21.1'
- name: Get cosmos-sdk repo
uses: actions/checkout@v4
with:
repository: cosmos/cosmos-sdk
ref: main
path: './cosmos-sdk'
- name: set up simapp
run:
ls &&
cd cosmos-sdk &&
make build &&
export SIMD_BIN=./cosmos-sdk/build/simd &&
make init-simapp
- name: Run simapp
run: ./cosmos-sdk/build/simd start &
- name: Wait for simd to boot up for 5 mins and produce blocks
run: sleep 30s
shell: bash
- name: Check blockchain status
run: curl localhost:26657/status
- 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: Wait for rosetta boot up for 30 secs
run: sleep 30s
shell: bash
- name: Check rosetta status
run: curl localhost:8081/block
- name: Test rosetta through Rosetta-cli
run:
chmod +x ./tests/rosetta-cli/data.sh &&
make rosetta-cli
shell: bash