Skip to content

Commit

Permalink
fix: git-diff make target
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jun 15, 2024
1 parent 7c31823 commit 0e4155a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,7 @@ jobs:
go-version: 1.22
- name: Install Go formatting tooling
run: make install-format-go
- name: Formating check
- name: Formatting check
run: make format-go
- name: Check for git diff
run: make git-diff
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ format-go:
cd tests/go && \
gci write --skip-generated --skip-vendor -s standard -s default . && \
golines --base-formatter=gofumpt --ignore-generated --tab-len=1 --max-len=120 --write-output . && \
git diff --exit-code

.PHONY: lint-go
lint-go:
Expand All @@ -52,6 +51,9 @@ vuln-go:
go vet ./... && \
gosec ./...

.PHONY: git-diff
git-diff:
git diff --exit-code

# --- Installation of tooling ---

Expand Down

0 comments on commit 0e4155a

Please sign in to comment.