mirror of
https://github.com/prymitive/karma
synced 2026-08-23 11:56:20 +00:00
fix(ci): use cache/restore
This commit is contained in:
committed by
Łukasz Mierzwa
parent
dd79d22d0a
commit
f9d31fba8b
@@ -24,9 +24,10 @@ jobs:
|
||||
with:
|
||||
go-version: 1.19.4
|
||||
|
||||
- name: Cache Go modules
|
||||
- name: Restore cache
|
||||
id: cache-go-modules
|
||||
uses: actions/cache@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-${{ github.ref_name }}-go-modules-${{ hashFiles('**/go.sum') }}
|
||||
@@ -61,9 +62,10 @@ jobs:
|
||||
with:
|
||||
go-version: 1.19.4
|
||||
|
||||
- name: Cache Go modules
|
||||
- name: Restore cache
|
||||
id: cache-go-modules
|
||||
uses: actions/cache@v3
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: ~/go/pkg/mod
|
||||
key: ${{ runner.os }}-${{ github.ref_name }}-go-modules-${{ hashFiles('**/go.sum') }}
|
||||
@@ -294,7 +296,7 @@ jobs:
|
||||
with:
|
||||
go-version: 1.19.4
|
||||
|
||||
- name: Cache Go
|
||||
- name: Restore cache
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
|
||||
Reference in New Issue
Block a user