-
Notifications
You must be signed in to change notification settings - Fork 5
53 lines (44 loc) · 1.15 KB
/
integration.yml
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
name: gcosmos 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
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: 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: Clone Cosmos-SDK with patches
working-directory: gcosmos
run: |
bash _cosmosvendor/sync_sdk.bash
go build -o gcosmos .
- name: Build, setup, and start background gcosmos
working-directory: gcosmos
run: |
./scripts/run_gcosmos.sh &
- 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