-
-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 13,7 @@ clean: ## cleans output directory | |
$(shell rm -rf $(BIN_OUT_DIR)/*) | ||
|
||
swagger: ## creates swagger documentation as html file | ||
go get github.com/swaggo/swag/cmd/[email protected] | ||
go install github.com/swaggo/swag/cmd/[email protected] | ||
npm install bootprint bootprint-openapi html-inline | ||
$(shell go env GOPATH)/bin/swag init -g api/api.go | ||
$(shell) node_modules/bootprint/bin/bootprint.js openapi docs/swagger.json /tmp/swagger/ | ||
|
@@ -29,6 29,7 @@ test: ## run tests | |
go test -v -coverprofile=coverage.txt -covermode=atomic -cover ./... | ||
|
||
lint: build ## run golangcli-lint checks | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
$(shell go env GOPATH)/bin/golangci-lint run | ||
|
||
run: build ## Build and run binary | ||
|