Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ jobs:
- name: Run tests
run: make test

- name: Check README commands section is up to date
run: make generate-docs && git diff --exit-code README.md

shellcheck:
name: Shellcheck
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ $(MOCK_DIR)/client.go: $(GO_BIN)/mockgen $(MOCK_SRC_DIR)
#-----------------------------------------------------------------------------------------------------------------------
# Phony Rules(https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html)
#-----------------------------------------------------------------------------------------------------------------------
.PHONY: build run clean test lint audit format
.PHONY: build run clean test lint audit format generate-docs

help: ## Show this help
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
Expand Down Expand Up @@ -118,3 +118,7 @@ format: $(GO_BIN)/gofumpt ## Format Go source files

generate-mocks: $(MOCK_DIR)/*.go ## Generate Go mocks
@echo "==> Mocks generated"

generate-docs: ## Regenerate the Commands section of README.md from cobra command metadata
@echo "==> Generating docs"
@go run ./cmd/gendocs
Loading
Loading