Skip to content

Commit 8c62d99

Browse files
committed
chore: add fmt step
Signed-off-by: chenk <[email protected]>
1 parent 4d2679c commit 8c62d99

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/build.yml

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
3535
exit 1
3636
fi
3737
38+
- name: Fmt
39+
run: |
40+
go fmt ./...
41+
if [ -n "$(git status --porcelain)" ]; then
42+
echo "Run 'go fmt ./...' and push it"
43+
exit 1
44+
fi
45+
3846
- name: Lint
3947
uses: golangci/[email protected]
4048
with:

0 commit comments

Comments
 (0)