Skip to content

Commit

Permalink
actions: use go-version-file: .go-version
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v committed Nov 30, 2022
1 parent 3429ebc commit 6a51e1b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,9 @@ jobs:

- uses: actions/checkout@v3

# Uses Go version from the repository.
- name: Read .go-version file
id: goversion
run: echo "::set-output name=version::$(cat .go-version)"

- uses: actions/setup-go@v3
with:
go-version: "${{ steps.goversion.outputs.version }}"
go-version-file: .go-version

- name: golangci-lint
env:
Expand All @@ -50,4 +45,4 @@ jobs:
args: --timeout=30m --whole-files

# Optional: show only new issues if it's a pull request. The default value is `false`.
only-new-issues: true
only-new-issues: true

0 comments on commit 6a51e1b

Please sign in to comment.