generated from meshery/meshery-istio
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #121 from acald-creator/upgrade/go/1.19
Upgrade to Go 1.19
- Loading branch information
Showing
10 changed files
with
193 additions
and
810 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
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 @@ | ||
name: Meshery-app-mesh | ||
name: Default Meshery-App Mesh Workflow | ||
on: | ||
push: | ||
branches: | ||
|
@@ -13,15 +13,24 @@ jobs: | |
name: Check & Review code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@master | ||
- uses: actions/setup-go@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
go-version: 1.19 | ||
- uses: actions/checkout@v3 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
with: | ||
go-version: 1.17 | ||
- run: GOPROXY=direct GOSUMDB=off go get -u golang.org/x/lint/golint; go list ./appmesh/... | grep -v /vendor/ | xargs -L1 /home/runner/go/bin/golint -set_exit_status | ||
# 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 | ||
|
||
# Optional: working directory, useful for monorepos | ||
# working-directory: somedir | ||
|
||
# Optional: golangci-lint command line arguments. | ||
# args: --issues-exit-code=0 | ||
|
||
# Optional: show only new issues if it's a pull request. The default value is `false`. | ||
# only-new-issues: true | ||
error_check: | ||
name: Error check | ||
runs-on: ubuntu-latest | ||
|
@@ -31,23 +40,26 @@ jobs: | |
with: | ||
fetch-depth: 1 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: 1.17 | ||
go-version: 1.19 | ||
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get -u github.com/kisielk/errcheck; /home/runner/go/bin/errcheck -tags draft ./... | ||
static_check: | ||
name: Static check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@master | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.17 | ||
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go get -u honnef.co/go/tools/cmd/staticcheck; /home/runner/go/bin/staticcheck -tags draft -checks all ./appmesh/... # https://staticcheck.io/docs/checks | ||
go-version: 1.19 | ||
- uses: dominikh/[email protected] | ||
with: | ||
install-go: false | ||
version: "2022.1" | ||
vet: | ||
name: Vet | ||
runs-on: ubuntu-latest | ||
|
@@ -57,9 +69,9 @@ jobs: | |
with: | ||
fetch-depth: 1 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: 1.17 | ||
go-version: 1.19 | ||
- run: GOPROXY=direct GOSUMDB=off GO111MODULE=on go vet -tags draft ./... | ||
sec_check: | ||
name: Security check | ||
|
@@ -68,7 +80,7 @@ jobs: | |
GO111MODULE: on | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@master | ||
with: | ||
fetch-depth: 1 | ||
- name: Run Gosec Security Scanner | ||
|
@@ -87,13 +99,13 @@ jobs: | |
with: | ||
fetch-depth: 1 | ||
- name: Setup Go | ||
uses: actions/setup-go@v3 | ||
uses: actions/setup-go@master | ||
with: | ||
go-version: 1.17 | ||
go-version: 1.19 | ||
- name: Create cluster using KinD | ||
uses: engineerd/setup-kind@v0.3.0 | ||
uses: engineerd/setup-kind@v0.5.0 | ||
with: | ||
version: "v0.7.0" | ||
version: "v0.11.0" | ||
- run: | | ||
export CURRENTCONTEXT="$(kubectl config current-context)" | ||
echo "current-context:" ${CURRENTCONTEXT} | ||
|
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.17 as builder | ||
FROM golang:1.19 as builder | ||
|
||
ARG VERSION | ||
ARG GIT_COMMITSHA | ||
|
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
Oops, something went wrong.