Merge pull request #1780 from nspcc-dev/ci-cache-fix

github: fix go mod cache
This commit is contained in:
Roman Khimov 2021-02-26 14:04:57 +03:00 committed by GitHub
commit d33291c377
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 image - name: Build image
run: make image run: make image