You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 29, 2025. It is now read-only.
GA workflows are updated to use go v1.20 or higher and K8s v1.27.x
This commit will:
- update all actions and tool versions
- updating Kind version and image for E2E tests
- install golang-ci lint as recommended by provider
- specify major and minor version of go in setup-go action as recommended in
the action's docs
- fix linting issues spotted by ner version of golangci-lint
- update regression workflow to use K8s v20 to 27
Signed-off-by: Madalina Lazar <madalina.lazar@intel.com>
Copy file name to clipboardExpand all lines: .github/workflows/static-analysis.yaml
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -22,19 +22,19 @@ on:
22
22
goVersion:
23
23
required: false
24
24
type: string
25
-
default: 1.19
25
+
default: 1.20.5
26
26
hadolintVersion:
27
27
required: false
28
28
type: string
29
29
default: v2.12.0
30
30
goLangCIVersion:
31
31
required: false
32
32
type: string
33
-
default: v1.50.1
33
+
default: v1.53.1
34
34
goImportsVersion:
35
35
required: false
36
36
type: string
37
-
default: v0.3.0
37
+
default: v0.9.3
38
38
jobs:
39
39
shellcheck:
40
40
name: Shellcheck
@@ -75,7 +75,7 @@ jobs:
75
75
- uses: actions/checkout@v3
76
76
- uses: actions/setup-go@v3
77
77
with:
78
-
go-version: ${{ inputs.goVersion }}
78
+
go-version: "${{ inputs.goVersion }}"
79
79
- run: go install golang.org/x/tools/cmd/goimports@${{ inputs.goImportsVersion }}; test -z $(goimports -l ${{ matrix.modulename }}) && test -z $(gofmt -l ${{ matrix.modulename }})
80
80
81
81
golangci-run:
@@ -88,7 +88,7 @@ jobs:
88
88
- uses: actions/checkout@v3
89
89
- uses: actions/setup-go@v3
90
90
with:
91
-
go-version: ${{ inputs.goVersion }}
92
-
- name: Running golang CI for ${{matrix.workingdir}}
93
-
run: go install github.com/golangci/golangci-lint/cmd/golangci-lint@${{ inputs.goLangCIVersion }} && cd ./${{ matrix.workingdir }} && golangci-lint run --timeout=5m -v --color='always' && cd ..
91
+
go-version: "${{ inputs.goVersion }}"
92
+
- name: Running golang CI for ${{matrix.workingdir}}
93
+
run: curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin ${{ inputs.goLangCIVersion }} && golangci-lint --version && cd ./${{ matrix.workingdir }} && golangci-lint run --timeout=5m -v --color='always' && cd ..
0 commit comments