Skip to content

Commit

Permalink
ci: add staticcheck to Go workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanhitt committed Apr 5, 2024
1 parent d3fe828 commit 00d1a57
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ name: Go

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

Expand Down Expand Up @@ -33,3 +32,14 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=covprofile -service=github

staticcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-go@v3

- run: go install honnef.co/go/tools/cmd/staticcheck@latest

- run: ~/go/bin/staticcheck -checks all

0 comments on commit 00d1a57

Please sign in to comment.