Skip to content

Commit

Permalink
actions: use go-version-file: .go-version (#2142)
Browse files Browse the repository at this point in the history
see actions/setup-go#295

(cherry picked from commit cf5c762)

# Conflicts:
#	.github/workflows/golangci-lint.yml
  • Loading branch information
v1v authored and mergify[bot] committed Nov 30, 2022
1 parent c7a2ca5 commit 3ed1967
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,20 @@ jobs:
name: lint
runs-on: ubuntu-latest
steps:
<<<<<<< HEAD
- uses: actions/checkout@v2
=======
- name: Echo details
env:
GOOS: ${{ matrix.GOOS }}
run: echo Go GOOS=$GOOS

# Uses Go version from the repository.
- name: Read .go-version file
id: goversion
run: echo "::set-output name=version::$(cat .go-version)"
- uses: actions/checkout@v3
>>>>>>> cf5c762 (actions: use go-version-file: .go-version (#2142))

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

- name: golangci-lint
uses: golangci/golangci-lint-action@v2
Expand Down

0 comments on commit 3ed1967

Please sign in to comment.