We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f05bc commit eedc693Copy full SHA for eedc693
2 files changed
.github/workflows/test.yml
@@ -22,5 +22,8 @@ jobs:
22
with:
23
go-version: 1.23
24
25
+ - name: Check formatting
26
+ run: make check-fmt
27
+
28
- name: Test
29
run: make
Makefile
@@ -8,4 +8,13 @@ test:
8
build:
9
go build main.go
10
11
+.PHONE: check-fmt
12
+check-fmt:
13
+ unformatted=$$(gofmt -l .); \
14
+ if [ -n "$$unformatted" ]; then \
15
+ echo "The following files are not formatted properly:"; \
16
+ echo "$$unformatted"; \
17
+ exit 1; \
18
+ fi
19
20
.DEFAULT_GOAL := test
0 commit comments