Skip to content

Commit

Permalink
Wip...
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Nov 15, 2024
1 parent a509672 commit f213271
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ jobs:
run: if [ "$(go fmt ./... | wc -l)" -gt 0 ]; then echo "go fmt failed, please run again locally"; exit 1; fi
- name: "vet"
run: "go vet ./..."
- name: "imports"
run: |
"go install golang.org/x/tools/cmd/goimports@latest"
if [ "$(goimports -l . | wc -l)" -gt 0 ]; then echo "goimports failed, please run again locally"; exit 1; fi
- run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
- name: "setup imports"
run: "go install golang.org/x/tools/cmd/goimports@latest"
- name: "test imports"
run: if [ "$(goimports -l . | wc -l)" -gt 0 ]; then echo "goimports failed, please run again locally"; exit 1; fi
- name: "setup staticcheck"
run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
- name: staticcheck
run: "staticcheck ./..."

0 comments on commit f213271

Please sign in to comment.