Skip to content

Commit

Permalink
actions: use go-version-file: .go-version (#9698) (#9700)
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 <victormartinezrubio@gmail.com>
  • Loading branch information
mergify[bot] and v1v authored Nov 30, 2022
1 parent 311a5ed commit 8f7ccee
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 8f7ccee

Please sign in to comment.