From 7f12053941d0564014dac827d80aa623f7919c70 Mon Sep 17 00:00:00 2001 From: Wilfried Roset Date: Fri, 29 Mar 2024 11:06:28 +0100 Subject: [PATCH] Adjust dominikh/staticcheck-action to rely on actions/setup-go for installing the correct go version based on go.mod Signed-off-by: Wilfried Roset --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 595daeec..9eb6c8e4 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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 ./... @@ -24,3 +24,5 @@ jobs: - uses: dominikh/staticcheck-action@v1.3.0 with: version: "2023.1" + # go is already installed by actions/setup-go with the correct version from go.mod + install-go: false