From 8f7cceecb3a8369049181d3f49bb62a49e3ae0ab Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:32:30 +0000 Subject: [PATCH] actions: use go-version-file: .go-version (#9698) (#9700) see https://github.com/actions/setup-go/pull/295 (cherry picked from commit 1ccbb4a232be9de78856cfd1459d456f8afc136b) Co-authored-by: Victor Martinez --- .github/workflows/macos.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 40aba66e5bf..bda0b282f58 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -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 ./...