Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: backport github workflows #1355

Merged
merged 8 commits into from
Sep 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/linkchecker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check Markdown links
on:
pull_request:
paths: ["**.md"]
push:
branches:
- main
- release/**
paths: ["**.md"]

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
check-modified-files-only: "yes"
base-branch: main
41 changes: 13 additions & 28 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ jobs:
if: env.GIT_DIFF
run: |
make test-unit-cover
- uses: codecov/codecov-action@v3
if: env.GIT_DIFF
with:
file: ./coverage.txt
fail_ci_if_error: true
# TODO: disabled
# - uses: codecov/codecov-action@v3
# if: env.GIT_DIFF
# with:
# file: ./coverage.txt
# fail_ci_if_error: true

test-e2e:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -86,23 +87,7 @@ jobs:
price-feeder:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: technote-space/get-diff-action@v6.1.0
with:
PATTERNS: |
**/**.go
price-feeder/go.mod
price-feeder/go.sum
- uses: actions/setup-go@v3
if: env.GIT_DIFF
with:
go-version: 1.19
cache: true
cache-dependency-path: price-feeder/go.sum
- name: Test price-feeder
if: env.GIT_DIFF
run: |
cd price-feeder && make test-unit
- run: echo OK price feeder not tested in v1

liveness-test:
runs-on: ubuntu-latest
Expand All @@ -121,16 +106,16 @@ jobs:
with:
go-version: 1.19
cache: true
- name: Build umeed
- name: Install Starport
if: env.GIT_DIFF
run: |
make build
- name: Start single node chain
curl https://get.starport.network/starport@v0.19.3! | bash
- name: Start Local Network via Starport
if: env.GIT_DIFF
run: |
./contrib/scripts/single-node.sh
starport chain serve --reset-once -v -c ./starport.ci.yml > starport.out 2>&1 &
- name: Test Local Network Liveness
if: env.GIT_DIFF
run: |
sleep 1m
./contrib/scripts/test_localnet_liveness.sh 50 5 50 localhost:26657
sleep 2m
./contrib/scripts/test_localnet_liveness.sh 100 5 50 localhost
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:

before:
hooks:
- go mod tidy -compat=1.17
- go mod tidy -compat=1.19

builds:
- main: ./cmd/umeed
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ARG IMG_TAG=latest

# Compile the umeed binary
FROM golang:1.17-alpine AS umeed-builder
FROM golang:1.19-alpine AS umeed-builder
WORKDIR /src/app/
COPY go.mod go.sum* ./
RUN go mod download
Expand All @@ -12,7 +12,7 @@ RUN UMEE_ENABLE_BETA=true CGO_ENABLED=0 make install
RUN cd price-feeder && make install

# Fetch peggo (gravity bridge) binary
FROM golang:1.17-alpine AS peggo-builder
FROM golang:1.19-alpine AS peggo-builder
ARG PEGGO_VERSION=v0.2.2
ENV PACKAGES make git libc-dev gcc linux-headers
RUN apk add --no-cache $PACKAGES
Expand Down
2 changes: 1 addition & 1 deletion app/params/proto.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/cosmos/cosmos-sdk/x/auth/tx"
)

// MakeEncodingConfig creates an EncodingConfig for Amino-based tests.
// MakeEncodingConfig creates an EncodingConfig for tests.
func MakeEncodingConfig() EncodingConfig {
amino := codec.NewLegacyAmino()
interfaceRegistry := types.NewInterfaceRegistry()
Expand Down
4 changes: 2 additions & 2 deletions cmd/umeed/cmd/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ func debugCmd() *cobra.Command {
return cmd
}

// nolint: lll
func debugAddrCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "addr [address]",
Expand Down Expand Up @@ -80,7 +79,8 @@ $ %s debug addr cosmos1e0jnq2sun3dzjh8p2xq95kk0expwmd7shwjpfg
},
}

cmd.Flags().String(flagBech32HRP, umeeapp.AccountAddressPrefix, "Input Bech32 HRP (use only when address input is a Bech32 address")
cmd.Flags().String(flagBech32HRP, umeeapp.AccountAddressPrefix,
"Input Bech32 HRP (use only when address input is a Bech32 address")

return cmd
}
4 changes: 2 additions & 2 deletions cmd/umeed/cmd/genaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const (
flagVestingAmt = "vesting-amount"
)

// nolint: lll
func addGenesisAccountCmd(defaultNodeHome string) *cobra.Command {
cmd := &cobra.Command{
Use: "add-genesis-account [address_or_key_name] [coin][,[coin]]",
Expand Down Expand Up @@ -179,7 +178,8 @@ contain valid denominations. Accounts may optionally be supplied with vesting pa
},
}

cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend, "Select keyring's backend (os|file|kwallet|pass|test)")
cmd.Flags().String(flags.FlagKeyringBackend, flags.DefaultKeyringBackend,
"Select keyring's backend (os|file|kwallet|pass|test)")
cmd.Flags().String(flags.FlagHome, defaultNodeHome, "The application home directory")
cmd.Flags().String(flagVestingAmt, "", "amount of coins for vesting accounts")
cmd.Flags().Int64(flagVestingStart, 0, "schedule start time (unix epoch) for vesting accounts")
Expand Down
3 changes: 1 addition & 2 deletions cmd/umeed/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ func txCommand(ac appCreator) *cobra.Command {
return cmd
}

// nolint: unused
func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) {
func overwriteFlagDefaults(c *cobra.Command, defaults map[string]string) { //nolint: unused
set := func(s *pflag.FlagSet, key, val string) {
if f := s.Lookup(key); f != nil {
f.DefValue = val
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/umee-network/umee

go 1.17
go 1.19

require (
github.com/cosmos/cosmos-sdk v0.45.1
Expand Down
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,6 @@ github.com/cosmos/iavl v0.17.1/go.mod h1:7aisPZK8yCpQdy3PMvKeO+bhq1NwDjUwjzxwwRO
github.com/cosmos/iavl v0.17.2/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w=
github.com/cosmos/iavl v0.17.3 h1:s2N819a2olOmiauVa0WAhoIJq9EhSXE9HDBAoR9k+8Y=
github.com/cosmos/iavl v0.17.3/go.mod h1:prJoErZFABYZGDHka1R6Oay4z9PrNeFFiMKHDAMOi4w=
github.com/cosmos/ibc-go v1.2.2 h1:bs6TZ8Es1kycIu2AHlRZ9dzJ+mveqlLN/0sjWtRH88o=
github.com/cosmos/ibc-go v1.2.2/go.mod h1:XmYjsRFOs6Q9Cz+CSsX21icNoH27vQKb3squgnCOCbs=
github.com/cosmos/ibc-go/v2 v2.0.2/go.mod h1:XUmW7wmubCRhIEAGtMGS+5IjiSSmcAwihoN/yPGd6Kk=
github.com/cosmos/ibc-go/v2 v2.0.3 h1:kZ6SAj7hyxoixsLEUBx431bVGiBW22PCHwkWHafWhXs=
Expand Down
2 changes: 1 addition & 1 deletion infra/packer/Dockerfile.build
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update \
&& rm -rf /var/lib/{apt,dpkg,cache,log}/

# Install go
RUN curl -sL https://go.dev/dl/go1.17.5.linux-amd64.tar.gz | tar --strip-components=1 -C /usr/local -xz
RUN curl -sL https://go.dev/dl/go1.19.1.linux-amd64.tar.gz | tar --strip-components=1 -C /usr/local -xz

# Copy Umee source in
WORKDIR /tmp/build/umee
Expand Down
2 changes: 1 addition & 1 deletion price-feeder/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/umee-network/umee/price-feeder

go 1.17
go 1.19

require (
github.com/BurntSushi/toml v1.0.0
Expand Down
Loading