File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,18 +50,20 @@ jobs:
5050 go mod verify
5151 go mod download
5252
53- curl -fsSL https://github.com/golangci/golangci-lint/releases/download/v${LINT_VERSION}/golangci-lint-${LINT_VERSION}-linux-amd64.tar.gz | \
54- tar xz --strip-components 1 --wildcards \*/golangci-lint
55- mkdir -p bin && mv golangci-lint bin/
56-
5753 - name : Run Lint checks
58- run : |
59- bin/golangci-lint run --out-format=github-actions --timeout=3m || exit $?
54+ uses : golangci/golangci-lint-action@v3
55+ with :
56+ version : v${{ env.LINT_VERSION }}
57+ install-mode : binary
6058
6159 - name : Build docs generator
6260 run : |
6361 go build -o bin/gen-docs cmd/gen-docs/gen-docs.go || exit $?
6462
63+ - name : Build gopfumpt
64+ run : |
65+ go install mvdan.cc/gofumpt@latest
66+
6567 - name : Run checks
6668 run : |
6769 STATUS=0
7678 }
7779
7880 assert-nothing-changed ./bin/gen-docs --doc-path ./docs --website
79- assert-nothing-changed go fmt ./.. .
81+ assert-nothing-changed gofumpt -l -w .
8082 assert-nothing-changed go mod tidy
8183
8284 exit $STATUS
You can’t perform that action at this time.
0 commit comments