From f7ec07d2699093db34961d1863fdf89c10f19c5d Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Thu, 1 Dec 2022 10:41:32 +0800 Subject: [PATCH] actions: use go-version-file: .go-version (#9698) (#9702) 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 ./...