From 9ebf9cb6857558485c6a03c5e86f08831e070368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Wed, 27 Oct 2021 19:04:15 +0100 Subject: [PATCH] fix(ci): re-add go mod cache --- .github/workflows/test.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6066228d..95e12609f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -283,14 +283,15 @@ jobs: with: go-version: 1.17.2 - - name: Cache Go modules - id: cache-go-modules + - name: Cache Go uses: actions/cache@v2 with: - path: ~/go/pkg/mod - key: ${{ runner.os }}-${{ env.GITHUB_REF_SLUG }}-go-modules-${{ hashFiles('**/go.sum') }} + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-benchmark-${{ hashFiles('**/go.sum') }} restore-keys: | - ${{ runner.os }}-main-go-modules- + ${{ runner.os }}-go-benchmark- - name: Fetch all Go modules if: steps.cache-go-modules.outputs.cache-hit != 'true' @@ -388,6 +389,16 @@ jobs: with: go-version: 1.17.2 + - name: Cache Go + uses: actions/cache@v2 + with: + path: | + ~/.cache/go-build + ~/go/pkg/mod + key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} + restore-keys: | + ${{ runner.os }}-go- + - name: Set up Node JS uses: actions/setup-node@v2 with: