mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-11 14:41:11 +00:00
add support for ghes caching
This commit is contained in:
parent
bed538bd04
commit
7af0f4d168
9 changed files with 161 additions and 57 deletions
|
@ -28,6 +28,7 @@ describe('run', () => {
|
|||
let getStateSpy: jest.SpyInstance;
|
||||
let saveCacheSpy: jest.SpyInstance;
|
||||
let getCommandOutputSpy: jest.SpyInstance;
|
||||
let isCacheActionAvailable: jest.SpyInstance;
|
||||
let hashFilesSpy: jest.SpyInstance;
|
||||
let existsSpy: jest.SpyInstance;
|
||||
|
||||
|
@ -70,6 +71,9 @@ describe('run', () => {
|
|||
|
||||
// utils
|
||||
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
|
||||
|
||||
isCacheActionAvailable = jest.spyOn(utils, 'isCacheFeatureAvailable');
|
||||
isCacheActionAvailable.mockImplementation(() => true);
|
||||
});
|
||||
|
||||
afterEach(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue