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 acfb468 commit 4619c4e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,20 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: "checkout"
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: "fetch unshallow"
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}
- 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"
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"
"staticcheck ./..."

0 comments on commit 4619c4e

Please sign in to comment.