Skip to content

Commit

Permalink
Add versioning for staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
wenovus committed Aug 10, 2023
1 parent 787b411 commit c2294c3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/basic_go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
# Arrays are currently not accepted:
# https://github.com/orgs/community/discussions/11692
default: "['stable' , 'oldstable']"
staticcheck-version:
type: string
default: 'latest'
static-analysis-excludes-regex:
type: string
# TODO(wenvous): gofmt is harder to work with since it always recursively
Expand Down Expand Up @@ -169,7 +172,7 @@ jobs:
- name: Install staticcheck
if: ${{ !cancelled() }}
run: |
go install honnef.co/go/tools/cmd/staticcheck@latest
go install honnef.co/go/tools/cmd/staticcheck@${{ inputs.staticcheck-version }}
- name: Cache for staticcheck
if: ${{ !cancelled() && !inputs.skip-staticcheck }}
Expand Down

0 comments on commit c2294c3

Please sign in to comment.