Skip to content

Commit

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

(cherry picked from commit 1ccbb4a)

Co-authored-by: Victor Martinez <[email protected]>
  • Loading branch information
mergify[bot] and v1v authored Dec 1, 2022
1 parent 455a9ba commit f7ec07d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: Fetch Go version from .go-version
run: echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
- uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: .go-version
cache: true
- name: Run tests
run: |-
go test -v ./...
run: go test -v ./...

0 comments on commit f7ec07d

Please sign in to comment.