mirror of
https://github.com/prymitive/karma
synced 2026-05-13 03:56:59 +00:00
fix(ci): use cache/restore
This commit is contained in:
committed by
Łukasz Mierzwa
parent
0befdd354d
commit
dd79d22d0a
14
.github/workflows/test.yml
vendored
14
.github/workflows/test.yml
vendored
@@ -295,7 +295,7 @@ jobs:
|
||||
go-version: 1.19.4
|
||||
|
||||
- name: Cache Go
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
@@ -404,6 +404,7 @@ jobs:
|
||||
go-version: 1.19.4
|
||||
|
||||
- name: Cache Go
|
||||
if: github.event_name != 'pull_request'
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
path: |
|
||||
@@ -413,6 +414,17 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Restore cache
|
||||
if: github.event_name == 'pull_request'
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
path: |
|
||||
~/.cache/go-build
|
||||
~/go/pkg/mod
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Set up Node JS
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user