Skip to content

Commit

Permalink
Adjust dominikh/staticcheck-action to rely on actions/setup-go for in…
Browse files Browse the repository at this point in the history
…stalling the correct go version based on go.mod

Signed-off-by: Wilfried Roset <[email protected]>
  • Loading branch information
wilfriedroset committed Mar 29, 2024
1 parent 7edd749 commit 7f12053
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
with:
go-version: '>=1.21'
go-version-file: 'go.mod'
- name: Build
run: go build -v ./...

Expand All @@ -24,3 +24,5 @@ jobs:
- uses: dominikh/[email protected]
with:
version: "2023.1"
# go is already installed by actions/setup-go with the correct version from go.mod
install-go: false

0 comments on commit 7f12053

Please sign in to comment.