Skip to content

Commit bde0c8b

Browse files
committed
test: add check license using go-licenses
1 parent 4fe54a8 commit bde0c8b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ BUILD_LDFLAGS = -X $(PKG).commit=$(COMMIT) -X $(PKG).date=$(DATE)
99

1010
default: test
1111

12-
ci: depsdev test-all
12+
ci: depsdev check-license test-all
1313

1414
test: cert
1515
go test ./... -coverprofile=coverage.out -covermode=count
@@ -36,6 +36,9 @@ lint:
3636
govulncheck ./...
3737
go vet -vettool=`which gostyle` -gostyle.config=$(PWD)/.gostyle.yml ./...
3838

39+
check-license:
40+
go-licenses check ./... --disallowed_types=permissive,forbidden,restricted --include_tests
41+
3942
doc:
4043
go run ./scripts/fndoc.go
4144

@@ -48,6 +51,7 @@ depsdev:
4851
go install golang.org/x/vuln/cmd/govulncheck@latest
4952
go install github.com/k1LoW/octocov-go-test-bench/cmd/octocov-go-test-bench@latest
5053
go install github.com/k1LoW/gostyle@latest
54+
go install github.com/google/go-licenses/v2@latest
5155

5256
cert:
5357
rm -f testdata/*.pem testdata/*.srl

0 commit comments

Comments
 (0)