-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: update golang version to 1.20 (#1043)
* Update golang version to 1.20 and replace ostracon * Update golang versions in workflows & Dockerfiles * Fix version to string in workflows * Update snapshot test * Update CHANGELOG.md * Update lint action * Lint * Update lint target * Update docs * Revert replace
- Loading branch information
Showing
20 changed files
with
87 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,18 +19,18 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: actions/checkout@v3 | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
**/**.go | ||
go.mod | ||
go.sum | ||
- uses: golangci/golangci-lint-action@master | ||
- uses: golangci/golangci-lint-action@v3 | ||
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.49.0 | ||
version: v1.51 | ||
args: --timeout 10m | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
if: env.GIT_DIFF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: ./.github/actions/generate-swagger | ||
- name: diff | ||
run: git diff | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- run: | | ||
make build | ||
|
@@ -39,7 +39,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: install runsim | ||
run: | | ||
export GO111MODULE="on" && go install github.com/cosmos/tools/cmd/[email protected] | ||
|
@@ -55,7 +55,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/bin | ||
|
@@ -75,7 +75,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/bin | ||
|
@@ -95,7 +95,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: actions/[email protected] | ||
with: | ||
path: ~/go/bin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- run: make build | ||
|
@@ -37,7 +37,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
|
@@ -54,7 +54,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -81,7 +81,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -110,7 +110,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -139,7 +139,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- run: make build | ||
|
@@ -24,7 +24,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- name: Install runsim | ||
|
@@ -41,7 +41,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/[email protected] | ||
|
@@ -59,7 +59,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/[email protected] | ||
|
@@ -77,7 +77,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: actions/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ jobs: | |
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- name: install tparse | ||
|
@@ -51,7 +51,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: technote-space/[email protected] | ||
id: git_diff | ||
with: | ||
|
@@ -70,7 +70,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- name: Display go version | ||
run: go version | ||
- uses: technote-space/[email protected] | ||
|
@@ -122,7 +122,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -210,7 +210,7 @@ jobs: | |
- uses: actions/checkout@v3 | ||
- uses: actions/[email protected] | ||
with: | ||
go-version: 1.18 | ||
go-version: '1.20' | ||
- uses: technote-space/[email protected] | ||
with: | ||
PATTERNS: | | ||
|
@@ -267,7 +267,7 @@ jobs: | |
# - uses: actions/checkout@v3 | ||
# - uses: actions/[email protected] | ||
# with: | ||
# go-version: 1.18 | ||
# go-version: '1.20' | ||
# - uses: technote-space/[email protected] | ||
# id: git_diff | ||
# with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.18-alpine as build | ||
FROM golang:1.20-alpine as build | ||
|
||
RUN apk add --no-cache tar | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM golang:1.18-alpine as build | ||
FROM golang:1.20-alpine as build | ||
|
||
RUN apk add git gcc libc-dev --no-cache | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.