.github: add a staticcheck action (#326)
Add a staticcheck step to the lint job of the Test workflow, and fix reported diagnostics.
This commit is contained in:
parent
3db848abec
commit
46ba813860
1 changed files with 11 additions and 14 deletions
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
|
|
@ -30,6 +30,10 @@ jobs:
|
|||
echo "All Go files are properly formatted"
|
||||
- name: Run Go vet
|
||||
run: go vet ./...
|
||||
- name: Run staticcheck
|
||||
uses: dominikh/staticcheck-action@v1
|
||||
with:
|
||||
version: "latest"
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Reference in a new issue