From a26791ea5a7f34d457aa57e9dcf3c54896cbe669 Mon Sep 17 00:00:00 2001 From: Anna Shaleva Date: Fri, 26 Feb 2021 12:10:10 +0300 Subject: [PATCH] github: fix go mod cache * Fix cache folder * Verbose `go mod download` --- .github/workflows/publish_to_dockerhub.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_to_dockerhub.yml b/.github/workflows/publish_to_dockerhub.yml index 09691d4d4..8c0b1349c 100644 --- a/.github/workflows/publish_to_dockerhub.yml +++ b/.github/workflows/publish_to_dockerhub.yml @@ -62,11 +62,11 @@ jobs: - name: Restore go modules from cache uses: actions/cache@v2 with: - path: /go/pkg/mod + path: /home/runner/go/pkg/mod key: deps-${{ hashFiles('go.sum') }} - name: Update Go modules - run: go mod download + run: go mod download -json - name: Run tests run: make test @@ -99,11 +99,11 @@ jobs: - name: Restore go modules from cache uses: actions/cache@v2 with: - path: /go/pkg/mod + path: /home/runner/go/pkg/mod key: deps-${{ hashFiles('go.sum') }} - name: Update Go modules - run: go mod download + run: go mod download -json - name: Build images run: make image