test: fix golint error

This commit is contained in:
andyzhangx 2023-03-07 13:21:47 +00:00
parent 7e59f2a38d
commit 1e266176ba
2 changed files with 9 additions and 6 deletions

View File

@ -7,12 +7,15 @@ jobs:
name: Go Lint name: Go Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Set up Go 1.x
uses: actions/checkout@master uses: actions/setup-go@v3
- name: Run linter
uses: golangci/golangci-lint-action@v2
with: with:
version: v1.45 go-version: ^1.19
- uses: actions/checkout@master
- name: Run linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.51
args: -E=gofmt,deadcode,unused,varcheck,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,contextcheck --timeout=30m0s args: -E=gofmt,deadcode,unused,varcheck,ineffassign,revive,misspell,exportloopref,asciicheck,bodyclose,contextcheck --timeout=30m0s
verify-helm: verify-helm:
name: Verify Helm name: Verify Helm

2
go.mod
View File

@ -1,6 +1,6 @@
module github.com/kubernetes-csi/csi-driver-nfs module github.com/kubernetes-csi/csi-driver-nfs
go 1.18 go 1.19
require ( require (
github.com/container-storage-interface/spec v1.5.0 github.com/container-storage-interface/spec v1.5.0