mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-05-07 02:29:53 +02:00
feat: Adding "always-save" flag that allows to save the new cache over the old cache.
This commit is contained in:
parent
baed3516c3
commit
5ab49b24e0
8 changed files with 63 additions and 5 deletions
|
@ -15,6 +15,12 @@ beforeAll(() => {
|
|||
return jest.requireActual("@actions/core").getInput(name, options);
|
||||
});
|
||||
|
||||
jest.spyOn(core, "getBooleanInput").mockImplementation((name, options) => {
|
||||
return jest
|
||||
.requireActual("@actions/core")
|
||||
.getBooleanInput(name, options);
|
||||
});
|
||||
|
||||
jest.spyOn(actionUtils, "getCacheState").mockImplementation(() => {
|
||||
return jest.requireActual("../src/utils/actionUtils").getCacheState();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue