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 935cd97 commit acfb468
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@ jobs:
- name: "fmt"
run: if [ "$(go fmt ./... | wc -l)" -gt 0 ]; then echo "go fmt failed, please run again locally"; exit 1; fi
- name: "imports"
run: "go install golang.org/x/tools/cmd/goimports@latest"
run: if [ "$(goimports -l . | wc -l)" -gt 0 ]; then echo "goimports failed, please run again locally"; exit 1; fi
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
- name: "vet"
run: "go vet ./..."
- name: staticcheck
run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
run: "staticcheck ./..."
run: |
"go install honnef.co/go/tools/cmd/staticcheck@latest"
"staticcheck ./..."

0 comments on commit acfb468

Please sign in to comment.