Skip to content

Commit

Permalink
fix: specify the go version to be used
Browse files Browse the repository at this point in the history
Updates the golangci-lint github workflow to specify the version
of go to be used.

Signed-off-by: N Balachandran <nibalach@redhat.com>
  • Loading branch information
nbalacha committed May 19, 2022
1 parent e6a44fe commit ffd711b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/golangci-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
branches: ['*']
pull_request:
branches: ['*']
env:
GO_VERSION: "1.17"

jobs:
golangci-lint:
Expand All @@ -14,6 +16,11 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Setup go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
Expand All @@ -35,7 +42,7 @@ jobs:
# only-new-issues: true

# Optional: if set to true then the action will use pre-installed Go.
# skip-go-installation: true
skip-go-installation: true

# Optional: if set to true then the action don't cache or
# restore ~/go/pkg.
Expand Down

0 comments on commit ffd711b

Please sign in to comment.