Add cache upload options and pull from latest actions/cache master

This commit is contained in:
Aiqiao Yan committed 2020-05-12 12:53:45 -04:00
1 parent 2d59116062
commit 2df0bd7fb8
5 files changed
+298 -64

No files matched your search

+2 -2
View File
@@ -135,7 +135,7 @@ test('save with server error should fail', async () => {
)
expect(saveCacheMock).toHaveBeenCalledTimes(1)
expect(saveCacheMock).toHaveBeenCalledWith(cacheId, archiveFile)
expect(saveCacheMock).toHaveBeenCalledWith(cacheId, archiveFile, undefined)
expect(getCompressionMock).toHaveBeenCalledTimes(1)
})
@@ -176,6 +176,6 @@ test('save with valid inputs uploads a cache', async () => {
)
expect(saveCacheMock).toHaveBeenCalledTimes(1)
expect(saveCacheMock).toHaveBeenCalledWith(cacheId, archiveFile)
expect(saveCacheMock).toHaveBeenCalledWith(cacheId, archiveFile, undefined)
expect(getCompressionMock).toHaveBeenCalledTimes(1)
})