mirror of
https://github.com/actions/toolkit
synced 2025-05-09 16:43:02 +00:00
Add cache upload options and pull from latest actions/cache master
This commit is contained in:
parent
c534ad2cbd
commit
1413cd0e32
7 changed files with 309 additions and 67 deletions
4
packages/cache/__tests__/saveCache.test.ts
vendored
4
packages/cache/__tests__/saveCache.test.ts
vendored
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue