pipeline improvements

pull/496/head
Frostebite 2023-02-12 19:13:39 +00:00
parent fd727e76d2
commit 7108629f2e
2 changed files with 4 additions and 1 deletions

View File

@ -123,6 +123,9 @@ export class Caching {
await fs.promises.mkdir(destinationFolder);
}
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}"`);
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$`);
const latestInBranch = await (
await CloudRunnerSystem.Run(`ls -t "${cacheFolder}" | grep .tar${compressionSuffix}$ | head -1`)
)

View File

@ -48,7 +48,7 @@ describe('Cloud Runner Caching', () => {
CloudRunnerLogger.log(`run 1 succeeded`);
await CloudRunnerSystem.Run(`tree ./cloud-runner-cache`);
await CloudRunnerSystem.Run(`tree ./cloud-runner-cache/cache`);
if (CloudRunnerOptions.cloudRunnerCluster === `local-docker`) {
const cacheFolderExists = fs.existsSync(`cloud-runner-cache/cache/${overrides.cacheKey}`);
expect(cacheFolderExists).toBeTruthy();