Merge pull request #235 from docker/chore-cache-v2

Use latest version of actions/cache
This commit is contained in:
Djordje Lukic 2020-06-18 01:20:10 -07:00 committed by GitHub
commit 0837f7db30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 8 deletions

View File

@ -38,12 +38,10 @@ jobs:
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
key: go-${{ hashFiles('**/go.sum') }}
- name: Test
env:
@ -73,12 +71,10 @@ jobs:
- name: Checkout code into the Go module directory
uses: actions/checkout@v2
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
key: go-${{ hashFiles('**/go.sum') }}
- name: Test
env: