Skip to content
Snippets Groups Projects
Commit e2cc41f4 authored by Valentin Rothberg's avatar Valentin Rothberg
Browse files

add vendor checks to Makefile and the CI

parent 6e107707
No related branches found
No related tags found
No related merge requests found
...@@ -61,6 +61,8 @@ validate_task: ...@@ -61,6 +61,8 @@ validate_task:
validate_script: validate_script:
- make validate - make validate
- make vendor
- ./hack/tree_status.sh
- make - make
test_task: test_task:
......
...@@ -76,9 +76,16 @@ clean: ...@@ -76,9 +76,16 @@ clean:
test: .install.ginkgo test: .install.ginkgo
$(GO) test -v ./... $(GO) test -v ./...
vendor:
export GO111MODULE=on \
$(GO) mod tidy && \
$(GO) mod vendor && \
$(GO) mod verify
.PHONY: \ .PHONY: \
binaries \ binaries \
test \ test \
gofmt \ gofmt \
lint \ lint \
validate validate \
vendor
#!/bin/bash
set -e
SUGGESTION="${SUGGESTION:-sync the vendor.conf and commit all changes.}"
STATUS=$(git status --porcelain)
if [[ -z $STATUS ]]
then
echo "tree is clean"
else
echo "tree is dirty, please $SUGGESTION"
echo ""
echo "$STATUS"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment