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 -1
View File
@@ -1,6 +1,7 @@
import * as core from '@actions/core'
import {
BlobClient,
BlobUploadCommonResponse,
BlockBlobClient,
BlockBlobParallelUploadOptions
} from '@azure/storage-blob'
@@ -8,7 +9,7 @@ import {
export async function uploadCacheFile(
signedUploadURL: string,
archivePath: string
): Promise<{}> {
): Promise<BlobUploadCommonResponse> {
// Specify data transfer options
const uploadOptions: BlockBlobParallelUploadOptions = {
blockSize: 4 * 1024 * 1024, // 4 MiB max block size