add support for ghes caching

This commit is contained in:
Dmitry Shibanov 2022-03-29 11:29:58 +02:00
parent bed538bd04
commit 7af0f4d168
9 changed files with 161 additions and 57 deletions

View file

@ -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', () => {