Add saveCacheV2 tests

This commit is contained in:
John Sudol committed 2024-11-26 00:23:42 +00:00
1 parent d436bbb50f
commit 8e0c67a6ea
3 files changed
+315 -3

No files matched your search

+2 -2
View File
@@ -328,10 +328,10 @@ export async function saveCache(
options?: UploadOptions,
enableCrossOsArchive = false
): Promise<number> {
const cacheServiceVersion: string = getCacheServiceVersion()
core.debug(`Cache service version: ${cacheServiceVersion}`)
checkPaths(paths)
checkKey(key)
const cacheServiceVersion: string = getCacheServiceVersion()
switch (cacheServiceVersion) {
case 'v2':
return await saveCacheV2(paths, key, options, enableCrossOsArchive)