Browse Source

ci: Add licence.check make target (#5335)

Also add it as a target for reviewable. There is now a licence check github action that runs to make sure that all files have a correct license

Signed-off-by: Jonathan Stacks <jonstacks@users.noreply.github.com>
Jonathan Stacks 6 months ago
parent
commit
23573e0363
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Makefile

+ 5 - 1
Makefile

@@ -72,7 +72,7 @@ FAIL	= (echo ${TIME} ${RED}[FAIL]${CNone} && false)
 # ====================================================================================
 # ====================================================================================
 # Conformance
 # Conformance
 
 
-reviewable: generate docs manifests helm.generate helm.schema.update helm.docs lint ## Ensure a PR is ready for review.
+reviewable: generate docs manifests helm.generate helm.schema.update helm.docs lint license.check ## Ensure a PR is ready for review.
 	@go mod tidy
 	@go mod tidy
 	@cd e2e/ && go mod tidy
 	@cd e2e/ && go mod tidy
 
 
@@ -87,6 +87,10 @@ update-deps:
 	@go mod tidy
 	@go mod tidy
 	@cd e2e/ && go mod tidy
 	@cd e2e/ && go mod tidy
 
 
+.PHONY: license.check
+license.check:
+	$(DOCKER) run --rm -u $(shell id -u) -v $(shell pwd):/github/workspace apache/skywalking-eyes:0.6.0 header check
+
 # ====================================================================================
 # ====================================================================================
 # Golang
 # Golang