Skip to content

Commit

Permalink
feat: Apply finschia-sdk 0.49.1 (Finschia#395)
Browse files Browse the repository at this point in the history
* Bump Go from 1.20 to 1.22

* Use alpine 1.18

* Update github actions

* Update go deps

* Bump finschia-sdk, wasmd, ibc-go

* Update linter rules

* remove grpc-web

* lint

* Revise make format command

* Add CHANGELOG

* fix: goreleaser error

Signed-off-by: zemyblue <[email protected]>

---------

Signed-off-by: zemyblue <[email protected]>
Co-authored-by: zemyblue <[email protected]>
  • Loading branch information
tkxkd0159 and zemyblue authored Jun 25, 2024
1 parent f747c3c commit a628fb2
Show file tree
Hide file tree
Showing 37 changed files with 374 additions and 593 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-generated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Golang
uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'

- uses: actions/checkout@v4
with:
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/ci-smart-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

env:
TEST_DOCKER_IMAGE: finschianode:smartcontractci
GO_VERSION: "1.20"
GO_VERSION: "1.22"

jobs:
cleanup-runs:
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- name: Build
run: GOARCH=${{ matrix.go-arch }} LEDGER_ENABLED=false LINK_STATICALLY=true make build
- name: Upload build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: fnsad
path: ./build/fnsad
Expand All @@ -91,7 +91,7 @@ jobs:
file: '.*'
target: 'contracts/'
- name: Download build
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: fnsad
path: ./build
Expand Down Expand Up @@ -121,14 +121,14 @@ jobs:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- name: Build and export
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: Dockerfile
context: .
tags: ${{ env.TEST_DOCKER_IMAGE }}
outputs: type=docker,dest=/tmp/finschia-ci-test.tar
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: finschia-ci-test
path: /tmp/finschia-ci-test.tar
Expand All @@ -152,7 +152,7 @@ jobs:
file: '.*'
target: 'contracts/'
- name: Download docker image
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: finschia-ci-test
path: /tmp
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
env:
registry: docker.io
DOCKER_REPOSITORY: finschia/finschianode
RUNNER_BASE_IMAGE_ALPINE: alpine:3.17
RUNNER_BASE_IMAGE_ALPINE: alpine:3.18
jobs:
docker_build_and_push:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
# Build Docker image
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
file: Dockerfile
context: .
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/e2e-ibc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ permissions:
packages: write

env:
GO_VERSION: '1.20'
GO_VERSION: '1.22'
TAR_PATH: /tmp/fnsad-docker-image.tar
IMAGE_NAME: finschia

Expand All @@ -38,14 +38,14 @@ jobs:
uses: docker/setup-buildx-action@v3

- name: Build and export
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: .
tags: finschia:local
outputs: type=docker,dest=${{ env.TAR_PATH }}

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: ${{ env.TAR_PATH }}
Expand All @@ -71,7 +71,7 @@ jobs:
uses: actions/checkout@v4

- name: Download Tarball Artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ${{ env.IMAGE_NAME }}
path: /tmp
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/format.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ jobs:
go.sum
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- uses: golangci/golangci-lint-action@v6
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.51
version: v1.59
args: --timeout 10m
github-token: ${{ secrets.GITHUB_TOKEN }}
if: env.GIT_DIFF
22 changes: 11 additions & 11 deletions .github/workflows/sims.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- name: Display go version
run: go version
- run: make build
Expand All @@ -35,12 +35,12 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- name: Display go version
run: go version
- name: Install runsim
run: export GO111MODULE="on" && go get github.com/cosmos/tools/cmd/[email protected]
- uses: actions/cache@v3.3.1
- uses: actions/cache@v4
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -52,7 +52,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand All @@ -61,7 +61,7 @@ jobs:
**/**.go
go.mod
go.sum
- uses: actions/cache@v3.3.1
- uses: actions/cache@v4
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -78,7 +78,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand All @@ -89,7 +89,7 @@ jobs:
go.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: actions/cache@v3.3.1
- uses: actions/cache@v4
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -106,7 +106,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand All @@ -117,7 +117,7 @@ jobs:
go.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: actions/cache@v3.3.1
- uses: actions/cache@v4
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand All @@ -134,7 +134,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.20'
go-version: '1.22'
- name: Display go version
run: go version
- uses: technote-space/[email protected]
Expand All @@ -145,7 +145,7 @@ jobs:
go.sum
SET_ENV_NAME_INSERTIONS: 1
SET_ENV_NAME_LINES: 1
- uses: actions/cache@v3.3.1
- uses: actions/cache@v4
with:
path: ~/go/bin
key: ${{ runner.os }}-go-runsim-binary
Expand Down
Loading

0 comments on commit a628fb2

Please sign in to comment.