Skip to content

ci: adjust directory layout #50

ci: adjust directory layout

ci: adjust directory layout #50

Workflow file for this run

name: build and verify
on:
pull_request:
push:
tags:
- '**'
branches:
- '**'
env:
GORDIAN_TEST_TIME_FACTOR: 4
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: gcosmos
# The _cosmosvendor/sync_sdk.bash script (via make deps)
# tries to use an existing SDK checkout to speed up the clone.
# Relying on actions/checkout should make that part of the cache,
# so CI ought to run faster.
- uses: actions/checkout@v4
with:
repository: cosmos/cosmos-sdk
path: cosmos-sdk
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: gcosmos/go.mod # Use whatever version is in the header of go.mod.
- name: Setup Git User
run: |
git config --global user.name "abc"
git config --global user.email "[email protected]"
- name: Vendor and patch SDK, build binary
run: |
make build
- name: Build, setup, and start background gcosmos
run: |
make build
make start &
- name: Verify gcosmos is running
run: |
sleep 5
RESP=$(curl -s http://127.0.0.1:26657/blocks/watermark --max-time 5 | jq .VotingHeight)
if [[ "$RESP" -le 1 ]]; then
echo "Failed to start gcosmos"
exit 1
fi
echo "gcosmos is running"
- name: Cleanup
run:
killall -9 gcosmos