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 57b9d9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
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
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ fmt:
gofumpt --version >/dev/null 2>&1 || go install mvdan.cc/gofumpt@latest
gofumpt -w .

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

.PHONY: docs
docs: ## generate documentation
$(eval $@_TMP_OUT := $(shell mktemp -d -t compose-output.XXXXXXXXXX))
Expand Down

0 comments on commit 57b9d9b

Please sign in to comment.