From dcc7ff372deefa511ec21fb391f902690a784c19 Mon Sep 17 00:00:00 2001 From: Grigory Efimov Date: Wed, 11 Jan 2023 20:20:28 +0300 Subject: [PATCH] .github/workflows/coverage.yml add go-cache-paths --- .github/workflows/coverage.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index d6030aa8..62e0397e 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,16 +17,20 @@ jobs: - name: git config run: git config --global url.https://${{ secrets.ANYTYPE_PAT }}@github.com/.insteadOf https://github.com/ + # cache {{ + - id: go-cache-paths + run: | + echo "::set-output name=GOCACHE::$(go env GOCACHE)" + echo "::set-output name=GOMODCACHE::$(go env GOMODCACHE)" - uses: actions/cache@v3 with: path: | - ~/go/pkg/mod - ~/.cache/go-build - ~/Library/Caches/go-build - ~\AppData\Local\go-build + ${{ steps.go-cache-paths.outputs.GOCACHE }} + ${{ steps.go-cache-paths.outputs.GOMODCACHE }} key: ${{ runner.os }}-go-${{ matrix.go-version }}-${{ hashFiles('**/go.sum') }} restore-keys: | ${{ runner.os }}-go-${{ matrix.go-version }}- + # }} - name: deps run: make deps