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 398cb40 commit 2ed6454Copy full SHA for 2ed6454
.github/workflows/linting.yml
@@ -20,18 +20,14 @@ jobs:
20
- name: "fetch unshallow"
21
run: git fetch --prune --unshallow
22
- name: Set up Go
23
- uses: actions/setup-go@v3
+ uses: actions/setup-go@v4
24
with:
25
go-version: ${{ matrix.go }}
26
- - name: install linting
27
- run: |
28
- "go install golang.org/x/tools/cmd/goimports@latest"
29
- "go install honnef.co/go/tools/cmd/staticcheck@latest"
30
- name: "fmt"
31
run: if [ "$(go fmt ./... | wc -l)" -gt 0 ]; then echo "go fmt failed, please run again locally"; exit 1; fi
32
- name: "imports"
33
run: |
34
- name: "vet"
35
- run: "go vet ./..."
+ - run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
36
- name: staticcheck
37
run: "staticcheck ./..."
0 commit comments