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