Skip to content

Commit

Permalink
chore: add Make goal to scan dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Dec 21, 2022
1 parent 10ddbd5 commit b94b442
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions commons-test.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
.PHONY: dependencies-scan
dependencies-scan:
@echo ">> Scanning dependencies in $(CURDIR)..."
go list -json -m all | docker run --rm -i sonatypecommunity/nancy:latest sleuth --skip-update-check

.PHONY: test-%
test-%:
@echo "Running $* tests..."
Expand Down
4 changes: 4 additions & 0 deletions examples/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
include ../commons-test.mk

.PHONY: dependencies-scan-examples
dependencies-scan-examples:
@find . -type f -name Makefile -execdir make dependencies-scan \;

.PHONY: test
test: test-unit
$(MAKE) -C cockroachdb test
Expand Down

0 comments on commit b94b442

Please sign in to comment.