mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-05-02 00:08:05 +08:00
Only use zstd on windows when gnu tar is installed, otherwise use gzip due to bug #301
This commit is contained in:
2
packages/cache/__tests__/tar.test.ts
vendored
2
packages/cache/__tests__/tar.test.ts
vendored
@@ -95,7 +95,7 @@ test('gzip extract GNU tar on windows', async () => {
|
||||
jest.spyOn(fs, 'existsSync').mockReturnValueOnce(false)
|
||||
|
||||
const isGnuMock = jest
|
||||
.spyOn(utils, 'useGnuTar')
|
||||
.spyOn(utils, 'isGnuTarInstalled')
|
||||
.mockReturnValue(Promise.resolve(true))
|
||||
const execMock = jest.spyOn(exec, 'exec')
|
||||
const archivePath = `${process.env['windir']}\\fakepath\\cache.tar`
|
||||
|
||||
Reference in New Issue
Block a user