mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-09 13: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
|
@ -50,6 +50,7 @@ describe('cache-restore', () => {
|
|||
let debugSpy: jest.SpyInstance;
|
||||
let setOutputSpy: jest.SpyInstance;
|
||||
let getCommandOutputSpy: jest.SpyInstance;
|
||||
let isCacheActionAvailable: jest.SpyInstance;
|
||||
let restoreCacheSpy: jest.SpyInstance;
|
||||
let hashFilesSpy: jest.SpyInstance;
|
||||
|
||||
|
@ -102,6 +103,9 @@ describe('cache-restore', () => {
|
|||
|
||||
// cache-utils
|
||||
getCommandOutputSpy = jest.spyOn(utils, 'getCommandOutput');
|
||||
|
||||
isCacheActionAvailable = jest.spyOn(utils, 'isCacheFeatureAvailable');
|
||||
isCacheActionAvailable.mockImplementation(() => true);
|
||||
});
|
||||
|
||||
describe('Validate provided package manager', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue