Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
actions: use go-version-file: .go-version (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Nov 30, 2022
1 parent 3429ebc commit d0393ab
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 d0393ab

Please sign in to comment.