mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-31 04:04:51 +00:00
Merge pull request #455 from marquiz/devel/helm-lint
scripts/test-infra: enable helm linting
This commit is contained in:
commit
e370429970
2 changed files with 6 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -124,6 +124,9 @@ ci-lint:
|
||||||
mdlint:
|
mdlint:
|
||||||
find docs/ -path docs/vendor -prune -false -o -name '*.md' | xargs $(MDL) -s docs/mdl-style.rb
|
find docs/ -path docs/vendor -prune -false -o -name '*.md' | xargs $(MDL) -s docs/mdl-style.rb
|
||||||
|
|
||||||
|
helm-lint:
|
||||||
|
helm lint --strict deployment/node-feature-discovery/
|
||||||
|
|
||||||
test:
|
test:
|
||||||
$(GO_CMD) test ./cmd/... ./pkg/...
|
$(GO_CMD) test ./cmd/... ./pkg/...
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,12 @@
|
||||||
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.36.0
|
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.36.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.5.2
|
||||||
|
|
||||||
# Run verify steps
|
# Run verify steps
|
||||||
make gofmt-verify
|
make gofmt-verify
|
||||||
make ci-lint
|
make ci-lint
|
||||||
|
make helm-lint
|
||||||
|
|
||||||
# Check that repo is clean
|
# Check that repo is clean
|
||||||
if ! git diff --quiet; then
|
if ! git diff --quiet; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue