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

@@ -49,16 +49,12 @@ const cachePackages = async (packageManager: string) => {
return;
}
try {
const cacheId = await cache.saveCache([cachePath], primaryKey);
if (cacheId == -1) {
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
} catch (error) {
core.warning(`${error.message}`);
const cacheId = await cache.saveCache([cachePath], primaryKey);
if (cacheId == -1) {
return;
}
core.info(`Cache saved with the key: ${primaryKey}`);
};
run();