mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-15 21:08:23 +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
|
# Install deps
|
||||||
gobinpath="$(go env GOPATH)/bin"
|
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
|
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
|
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"
|
chmod 755 "$kubectl"
|
||||||
|
|
||||||
# Run verify steps
|
# Run verify steps
|
||||||
|
echo "Checking gofmt"
|
||||||
make gofmt-verify
|
make gofmt-verify
|
||||||
|
|
||||||
|
echo "Running golangci-lint"
|
||||||
make ci-lint
|
make ci-lint
|
||||||
|
|
||||||
|
echo "Running Helm lint"
|
||||||
make helm-lint
|
make helm-lint
|
||||||
|
|
||||||
# Check that repo is clean
|
# Check that repo is clean
|
||||||
|
|
Loading…
Add table
Reference in a new issue