Skip to content

Commit

Permalink
feat: cosmos v0.50 upgrade + app-wiring (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
shifty11 authored Apr 22, 2024
1 parent 8105602 commit f6ace3e
Show file tree
Hide file tree
Showing 267 changed files with 13,779 additions and 7,490 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,25 @@ jobs:
go-version-file: 'go.mod'
# Test & coverage report creation
- name: Test & coverage report creation
run: go test -cover -mod=readonly ./x/...
run: go test -cover -mod=readonly ./x/...

interchaintest:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Check out repository code
uses: actions/checkout@v4
# Setup Golang
- name: 🐿 Setup Golang
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
# Setup heighliner
- name: Setup heighliner
run: make heighliner-setup
# Run heighliner
- name: Run heighliner
run: make heighliner
# Run interchaintest
- name: Run interchaintest
run: make interchaintest
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ release
.DS_Store
/scripts/
test/.env
chain
tmp-*

build
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMG_TAG=latest

# Compile the kyved binary
FROM golang:1.20-alpine AS kyved-builder
FROM golang:1.22-alpine AS kyved-builder

# Install make
RUN apk add --no-cache make
Expand Down
27 changes: 16 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ COMMIT := $(shell git log -1 --format='%H')
GO_VERSION := $(shell go version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f1,2)

# VERSION := $(shell echo $(shell git describe --tags) | sed 's/^v//')
VERSION := v1.4.0
VERSION := v1.5.0

TEAM_ALLOCATION := 165000000000000
ifeq ($(ENV),kaon)
Expand Down Expand Up @@ -34,8 +34,8 @@ ldflags := $(strip $(ldflags))
BUILD_FLAGS := -ldflags '$(ldflags)' -tags 'ledger' -trimpath

.PHONY: proto-setup proto-format proto-lint proto-gen \
format lint vet test build release dev
all: ensure_environment ensure_version proto-all format lint test build
format lint vet test build release dev interchaintest
all: ensure_environment ensure_version proto-all format lint test interchaintest build

###############################################################################
### Build ###
Expand Down Expand Up @@ -115,8 +115,8 @@ ifndef ENV
endif

ensure_version:
ifneq ($(GO_VERSION),1.20)
$(error ❌ Please run Go v1.20.x..)
ifneq ($(GO_VERSION),1.22)
$(error ❌ Please run Go v1.22.x..)
endif

###############################################################################
Expand Down Expand Up @@ -179,23 +179,28 @@ proto-setup:
### Tests & Simulation ###
###############################################################################

ensure_heighliner:
@which heighliner > /dev/null || (echo "❌ Heighliner not found. Please install it by running 'make heighliner-setup'." && exit 1)
@docker inspect kaon:local > /dev/null || (echo "❌ Kaon image not found. Please build it by running 'make heighliner'." && exit 1)

heighliner:
@echo "🤖 Building Kaon image..."
@heighliner build --chain kaon --local 1> /dev/null
@echo "✅ Completed build!"

@echo "🤖 Building KYVE image..."
@heighliner build --chain kyve --local 1> /dev/null
@echo "✅ Completed build!"

heighliner-setup:
@echo "🤖 Installing Heighliner..."
@git clone https://github.com/strangelove-ventures/heighliner.git
@cd heighliner && go install && cd ..
@git clone https://github.com/strangelove-ventures/heighliner.git /tmp/heighliner
@cd /tmp/heighliner && go install && cd ..
@rm -rf heighliner
@echo "✅ Completed installation!"

test:
@echo "🤖 Running tests..."
@go test -cover -mod=readonly ./x/...
@echo "✅ Completed tests!"

interchaintest: ensure_heighliner
@echo "🤖 Running interchain tests..."
@go test -mod=readonly ./interchaintest/...
@echo "✅ Completed interchain tests!"
Loading

0 comments on commit f6ace3e

Please sign in to comment.