Skip to content

Commit 62db2d9

Browse files
committed
run gofumpt in CI
1 parent d7358e2 commit 62db2d9

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/lint.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,26 @@ permissions:
1414
contents: read
1515

1616
jobs:
17+
format:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Set up Go
21+
uses: actions/setup-go@v5
22+
with:
23+
go-version: "1.20"
24+
25+
- name: Clone repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up gofumpt
29+
run: go install mvdan.cc/gofumpt@latest
30+
31+
- name: Run gofumpt
32+
run: |
33+
non_formatted_files="$(gofumpt -l .)"
34+
echo "$non_formatted_files"
35+
test -z "$non_formatted_files"
36+
1737
staticcheck:
1838
runs-on: ubuntu-latest
1939
steps:

0 commit comments

Comments
 (0)