Skip to content

Commit

Permalink
actions: use go-version-file: .go-version (#9698) (#9701)
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 committed Nov 30, 2022
1 parent f74400b commit 6d9998b
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/macos.yml
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 6d9998b

Please sign in to comment.