Skip to content

Commit

Permalink
Update linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Nov 15, 2024
1 parent ff9bac5 commit 6bcc895
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
- name: "fmt"
run: if [ "$(go fmt ./... | wc -l)" -gt 0 ]; then echo "go fmt failed, please run again locally"; exit 1; fi
if: matrix.os == 'ubuntu-latest'
- name: "imports"
- run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
run: if [ "$(goimports -l . | wc -l)" -gt 0 ]; then echo "goimports failed, please run again locally"; exit 1; fi
- name: "vet"
run: "go vet ./..."
- run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
- name: staticcheck
- run: "go install honnef.co/go/tools/cmd/staticcheck@latest"
run: "staticcheck ./..."
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: linting
name: unit-tests

on: ["push", "pull_request"]

Expand Down

0 comments on commit 6bcc895

Please sign in to comment.