From 4065a33bfdf697b6ce748a521686aee7edc748eb Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral <38422348+umarcor@users.noreply.github.com> Date: Wed, 14 Sep 2022 05:31:59 +0200 Subject: [PATCH] ci: use action/setup-go's cache (#1783) * ci: use action/setup-go's cache * ci: deprecate Golang 1.14 --- .github/workflows/test.yml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e0c2f15..4e041c7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,10 +13,13 @@ jobs: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: go-version: '^1.19' check-latest: true + cache: true - uses: actions/checkout@v3 @@ -33,7 +36,6 @@ jobs: - ubuntu - macOS go: - - 14 - 15 - 16 - 17 @@ -43,17 +45,12 @@ jobs: runs-on: ${{ matrix.platform }}-latest steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 with: go-version: 1.${{ matrix.go }}.x - - - uses: actions/checkout@v3 - - - uses: actions/cache@v3 - with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-1.${{ matrix.go }}.x-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-1.${{ matrix.go }}.x- + cache: true - run: | export GOBIN=$HOME/go/bin