fixing library warning in setup step

pull/310/head
Frostebite 2022-01-03 01:32:23 +00:00
parent c5eec1f675
commit 420ce7645e
3 changed files with 10 additions and 3 deletions

5
dist/index.js vendored
View File

@ -546,7 +546,10 @@ class Caching {
if (__1.Input.cloudRunnerTests) {
cloud_runner_logger_1.default.log(`Hashed cache folder ${yield lfs_hashing_1.LFSHashing.hashAllFiles(sourceFolder)}`);
}
console_1.assert(fs_1.default.existsSync(`${sourceFolder}`));
console_1.assert(fs_1.default.existsSync(`${path_1.default.basename(sourceFolder)}`));
if (__1.Input.cloudRunnerTests) {
yield cloud_runner_system_1.CloudRunnerSystem.Run(`ls`);
}
yield cloud_runner_system_1.CloudRunnerSystem.Run(`zip${__1.Input.cloudRunnerTests ? '' : ' -q'} -r ${cacheKey}.zip ${path_1.default.basename(sourceFolder)}`);
console_1.assert(fs_1.default.existsSync(`${cacheKey}.zip`));
console_1.assert(fs_1.default.existsSync(`${cacheFolder}`));

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,11 @@ export class Caching {
if (Input.cloudRunnerTests) {
CloudRunnerLogger.log(`Hashed cache folder ${await LFSHashing.hashAllFiles(sourceFolder)}`);
}
assert(fs.existsSync(`${sourceFolder}`));
assert(fs.existsSync(`${path.basename(sourceFolder)}`));
if (Input.cloudRunnerTests) {
await CloudRunnerSystem.Run(`ls`);
}
await CloudRunnerSystem.Run(
`zip${Input.cloudRunnerTests ? '' : ' -q'} -r ${cacheKey}.zip ${path.basename(sourceFolder)}`,