Skip to content

Commit 75e58bd

Browse files
authored
change workflow to use gofumpt (#56)
1 parent a4822fa commit 75e58bd

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: Go Build and Test
22

3-
on:
4-
pull_request
3+
on: pull_request
54

65
jobs:
7-
86
build-and-test:
97
name: Build and Test the Go code
108
runs-on: ubuntu-latest
@@ -14,7 +12,11 @@ jobs:
1412
- name: Set up Go
1513
uses: actions/setup-go@v4
1614
with:
17-
go-version: '1.22.5'
15+
go-version: "1.22.5"
16+
- name: Install gofumpt
17+
run: go install mvdan.cc/gofumpt@latest
18+
- name: Run gofumpt
19+
run: gofumpt -l -w .
1820
- name: make verification
1921
run: make verifiers
2022
- name: Build

.golangci.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ linters:
1010
- gomodguard
1111
- gofmt
1212
- unused
13-
- gofumpt
1413

1514
linters-settings:
1615
golint:
@@ -19,11 +18,6 @@ linters-settings:
1918
misspell:
2019
locale: US
2120

22-
gofumpt:
23-
# Choose whether or not to use the extra rules that are disabled
24-
# by default
25-
extra-rules: false
26-
2721
issues:
2822
exclude-use-default: false
2923
exclude:

0 commit comments

Comments
 (0)