adding test case

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

No files matched your search

+5 -9
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();