* add support for ghes caching
* fix licesnses
* work on resolving comments
* change internal error to warning
* fix warning for internal errors
* update version
'Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'
);
});
it('isCacheFeatureAvailable for GHES has an interhal error',()=>{
isFeatureAvailable.mockImplementation(()=>false);
process.env['GITHUB_SERVER_URL']='';
isCacheFeatureAvailable();
expect(warningSpy).toHaveBeenCalledWith(
'The runner was not able to contact the cache service. Caching will be skipped'
);
});
it('isCacheFeatureAvailable for GHES is available',()=>{
`::error::Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.${osm.EOL}`
thrownewError('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.');
}
else{
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
thrownewError('Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.');
}
else{
core.warning('The runner was not able to contact the cache service. Caching will be skipped');
'Cache action is only supported on GHES version >= 3.5. If you are on version >=3.5 Please check with GHES admin if Actions cache service is enabled or not.'
);
}else{
core.warning(
'The runner was not able to contact the cache service. Caching will be skipped'