Skip to content

Commit a08ab37

Browse files
committed
ci: add gofmt check to CI workflow
Add gofmt format checking to ensure consistent code formatting
1 parent 75633a9 commit a08ab37

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/check.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
with:
2222
go-version: "1.23"
2323

24-
- run: go test ./...
24+
- name: Check gofmt
25+
run: |
26+
files=$(gofmt -s -l .)
27+
echo "$files"
28+
test -z "$files"
2529
- run: go vet ./...
2630
- uses: dominikh/[email protected]
2731
with:

0 commit comments

Comments
 (0)