Skip to content

Commit

Permalink
use jq to validate true
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Feb 19, 2024
1 parent c323267 commit ac408ef
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ concurrency:

env:
GO_VERSION: 1.21.0
JQ_VERSION: '1.7'
JQ_FORCE: false
BIN_NAME: appd

jobs:
chain1:
Expand All @@ -18,6 +21,12 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: 'Setup jq'
uses: dcarbone/install-jq-action@v2
with:
version: '${{ env.JQ_VERSION }}'
force: '${{ env.JQ_FORCE }}'

- name: Setup go
uses: actions/setup-go@v4
with:
Expand All @@ -28,7 +37,7 @@ jobs:

- name: Build Chain
run: |
spawn new chain1 --bypass-prompt --bech32=roll --bin=appd --no-git --org=rollchains --denom=uroll --debug
spawn new chain1 --bypass-prompt --bech32=roll --bin=${{env.BIN_NAME}} --no-git --org=rollchains --denom=uroll --debug
cd chain1
go mod tidy
go test ./...
Expand All @@ -38,6 +47,5 @@ jobs:
- name: Run Chain
run: cd chain1 && HOME_DIR="~/.simapp" CHAIN_ID="local-1" BLOCK_TIME="2000ms" CLEAN=true sh scripts/test_node.sh &

# setup JQ?
- name: Validate Running
run: sleep 20 && curl http://127.0.0.1:26657/abci_info?
run: sleep 20 && ${{env.BIN_NAME}} status --output=json | jq -r 'has("sync_info")' | grep true

0 comments on commit ac408ef

Please sign in to comment.