Skip to content

Commit 81f2ed4

Browse files
authored
feat: use upstream's cosmovisor (#792)
* Remove cosmovisor * Add scripts for testing cosmovisor * Enable cosmovisor test in CI * Update CHANGELOG.md * Add a manual download test case * Separate installations * Remove unused variables * Use any for the test
1 parent 451b622 commit 81f2ed4

File tree

36 files changed

+211
-1662
lines changed

36 files changed

+211
-1662
lines changed

.github/workflows/test.yml

+21-22
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,27 @@ jobs:
6060
- name: Build
6161
run: GOOS=linux CGO_ENABLED=1 GOARCH=${{ matrix.goarch }} CC=${{ matrix.gcc }} LEDGER_ENABLED=false make build
6262

63-
# TODO: disable test-cosmovisor; this test uses uploaded binary(cosmos-sdk)
64-
# test-cosmovisor:
65-
# runs-on: ubuntu-latest
66-
# steps:
67-
# - uses: actions/checkout@v3
68-
# - uses: actions/[email protected]
69-
# with:
70-
# go-version: 1.18
71-
# - name: Display go version
72-
# run: go version
73-
# - uses: technote-space/[email protected]
74-
# id: git_diff
75-
# with:
76-
# PREFIX_FILTER: |
77-
# cosmovisor
78-
# PATTERNS: |
79-
# **/**.go
80-
# go.mod
81-
# go.sum
82-
# - name: Run cosmovisor tests
83-
# run: cd cosmovisor; make
84-
# if: env.GIT_DIFF
63+
64+
test-cosmovisor:
65+
runs-on: ubuntu-latest
66+
steps:
67+
- uses: actions/checkout@v3
68+
- uses: actions/[email protected]
69+
with:
70+
go-version: 1.18
71+
- name: Display go version
72+
run: go version
73+
- uses: technote-space/[email protected]
74+
id: git_diff
75+
with:
76+
PATTERNS: |
77+
**/**.go
78+
go.mod
79+
go.sum
80+
tools/cosmovisor/**
81+
- name: Run cosmovisor tests
82+
run: make cosmovisor
83+
if: env.GIT_DIFF
8584

8685
split-test-files:
8786
runs-on: ubuntu-latest

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
9393
* (store,x/wasm) [\#742](https://github.com/line/lbm-sdk/pull/742) fix to add error message in GetByteCode()
9494
* (amino) [\#745](https://github.com/line/lbm-sdk/pull/745) apply the missing amino codec of `x/token`, `x/collection`, `x/wasm` and `x/foundation`
9595
* (x/foundation) [\#757](https://github.com/line/lbm-sdk/pull/757) remove redundant granter from x/foundation events
96+
* (cosmovisor) [\#792](https://github.com/line/lbm-sdk/pull/792) Use upstream's cosmovisor
9697

9798
### Bug Fixes
9899
* (x/wasm) [\#453](https://github.com/line/lbm-sdk/pull/453) modify wasm grpc query api path

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ $(BUILDDIR)/:
131131
mkdir -p $(BUILDDIR)/
132132

133133
cosmovisor:
134-
$(MAKE) -C cosmovisor cosmovisor
134+
$(MAKE) -C tools/cosmovisor test
135135

136136
.PHONY: build build-linux cosmovisor
137137

cosmovisor/Makefile

-12
This file was deleted.

cosmovisor/README.md

-236
This file was deleted.

0 commit comments

Comments
 (0)