adding test case

This commit is contained in:
Shubham Tiwari 2022-06-26 07:59:55 +00:00 committed by GitHub
parent 2b1e32b119
commit 60b802d0e8
3 changed files with 66 additions and 18 deletions

View file

@ -59888,16 +59888,11 @@ const cachePackages = (packageManager) => __awaiter(void 0, void 0, void 0, func
core.info(`Cache hit occurred on the primary key ${primaryKey}, not saving cache.`);
return;
}
try {
const cacheId = yield cache.saveCache([cachePath], primaryKey);
if (cacheId == -1) {
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
}
catch (error) {
core.warning(`${error.message}`);
const cacheId = yield cache.saveCache([cachePath], primaryKey);
if (cacheId == -1) {
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
});
run();