mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
scripts/test-infra: bump golangci-lint to v1.49.0
Update to the latest version, supporting golang v1.19. Also make the verify script a tad more verbose.
This commit is contained in:
parent
c433d2c69f
commit
2e0e93fb84
1 changed files with 6 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Install deps
|
||||
gobinpath="$(go env GOPATH)/bin"
|
||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.45.2
|
||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b "$gobinpath" v1.49.0
|
||||
export PATH=$PATH:$(go env GOPATH)/bin
|
||||
|
||||
curl -sfL https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash -s -- --version v3.7.1
|
||||
|
@ -12,8 +12,13 @@ curl -L https://dl.k8s.io/release/v1.22.1/bin/linux/amd64/kubectl -o "$kubectl"
|
|||
chmod 755 "$kubectl"
|
||||
|
||||
# Run verify steps
|
||||
echo "Checking gofmt"
|
||||
make gofmt-verify
|
||||
|
||||
echo "Running golangci-lint"
|
||||
make ci-lint
|
||||
|
||||
echo "Running Helm lint"
|
||||
make helm-lint
|
||||
|
||||
# Check that repo is clean
|
||||
|
|
Loading…
Reference in a new issue