From 6d9998b34185ac5cf20f1e55b29ee81cea73d091 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 30 Nov 2022 15:31:50 +0000 Subject: [PATCH] actions: use go-version-file: .go-version (#9698) (#9701) 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 40aba66e5b..bda0b282f5 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 ./...