diff --git a/Makefile b/Makefile index c1d63cc8..ddd96457 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: mockgen test lint e2e-test +.PHONY: mockgen test lint e2e-test docs mockgen: go install go.uber.org/mock/mockgen@latest mockgen -source=openfeature/provider.go -destination=openfeature/provider_mock.go -package=openfeature @@ -10,7 +10,9 @@ mockgen: test: go test --short -tags testtools -cover ./... e2e-test: - git submodule update --init --recursive && go test -tags testtools -race -cover ./e2e/... + git submodule update --init --recursive && go test -tags testtools -race -cover ./e2e/... lint: go install -v github.com/golangci/golangci-lint/cmd/golangci-lint@v1.54.1 ${GOPATH}/bin/golangci-lint run --build-tags testtools --deadline=3m --timeout=3m ./... # Run linters +docs: + go run golang.org/x/pkgsite/cmd/pkgsite@latest -open .