From 46f24040bf2e5ec5a0f2b09b20deed2fbe1d5dcc Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 30 Nov 2022 11:02:14 +0000 Subject: [PATCH] actions: use go-version-file: .go-version see https://github.com/actions/setup-go/pull/295 --- .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 ./...