Skip to content

Commit

Permalink
Add staticcheck to test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
elivlo committed May 10, 2022
1 parent 0579288 commit e6f7814
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: Cache Go modules
uses: actions/cache@v2
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.17

- name: Cache Go modules
uses: actions/cache@v2
Expand Down Expand Up @@ -58,3 +58,9 @@ jobs:
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=c.out -service=github

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

- name: Run staticcheck for possible optimizations
run: staticcheck -tests=false

0 comments on commit e6f7814

Please sign in to comment.