diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 1b50ee9d..1dba8d04 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -10,6 +10,9 @@ concurrency: env: GO_VERSION: 1.21.0 + JQ_VERSION: '1.7' + JQ_FORCE: false + BIN_NAME: appd jobs: chain1: @@ -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: @@ -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 ./... @@ -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? \ No newline at end of file + run: sleep 20 && ${{env.BIN_NAME}} status --output=json | jq -r 'has("sync_info")' | grep true \ No newline at end of file