Skip to content

Commit

Permalink
verify staleness of vendored cluster-api-actuator-pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Mar 27, 2019
1 parent 995e3e2 commit e5d6ad1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,11 @@ push:
docker push "$(IMAGE):$(MUTABLE_TAG)"

.PHONY: check
check: fmt vet lint test ## Check your code
check: fmt vet lint test check-pkg ## Check your code

.PHONY: check-pkg
check-pkg:
./hack/verify-actuator-pkg.sh

.PHONY: unit
unit: # Run unit test
Expand Down
13 changes: 13 additions & 0 deletions hack/verify-actuator-pkg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

set -e

if ! command -v dep 1>/dev/null 2>&1; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
fi

if dep check | grep -q cluster-api-actuator-pkg; then
exit 1
fi
dep ensure -update github.com/openshift/cluster-api-actuator-pkg
git diff --exit-code

0 comments on commit e5d6ad1

Please sign in to comment.