Skip to content

Commit

Permalink
CI to validate fmt
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <[email protected]>
  • Loading branch information
ndeloof committed Dec 17, 2024
1 parent 50f2f54 commit 0c7adab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
- validate-go-mod
- validate-headers
- validate-docs
- validate-fmt
steps:
-
name: Checkout
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ lint: ## run linter(s)
.PHONY: fmt
fmt:
gofumpt --version >/dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
gofumpt -w .
$(GOPATH)/bin/gofumpt -w .

.PHONY: validate-fmt
validate-fmt: fmt
$(shell test -z "$$(git status --porcelain)" )

.PHONY: docs
docs: ## generate documentation
Expand Down

0 comments on commit 0c7adab

Please sign in to comment.