github: fix go mod cache
* Fix cache folder * Verbose `go mod download`
This commit is contained in:
parent
f264996f74
commit
a26791ea5a
1 changed files with 4 additions and 4 deletions
8
.github/workflows/publish_to_dockerhub.yml
vendored
8
.github/workflows/publish_to_dockerhub.yml
vendored
|
@ -62,11 +62,11 @@ jobs:
|
||||||
- name: Restore go modules from cache
|
- name: Restore go modules from cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /go/pkg/mod
|
path: /home/runner/go/pkg/mod
|
||||||
key: deps-${{ hashFiles('go.sum') }}
|
key: deps-${{ hashFiles('go.sum') }}
|
||||||
|
|
||||||
- name: Update Go modules
|
- name: Update Go modules
|
||||||
run: go mod download
|
run: go mod download -json
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: make test
|
run: make test
|
||||||
|
@ -99,11 +99,11 @@ jobs:
|
||||||
- name: Restore go modules from cache
|
- name: Restore go modules from cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: /go/pkg/mod
|
path: /home/runner/go/pkg/mod
|
||||||
key: deps-${{ hashFiles('go.sum') }}
|
key: deps-${{ hashFiles('go.sum') }}
|
||||||
|
|
||||||
- name: Update Go modules
|
- name: Update Go modules
|
||||||
run: go mod download
|
run: go mod download -json
|
||||||
|
|
||||||
- name: Build images
|
- name: Build images
|
||||||
run: make image
|
run: make image
|
||||||
|
|
Loading…
Reference in a new issue