mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-02 06:33:16 +08:00
tool-cache: make extract functions quiet by default and more verbose if core.isDebug is set (#206)
* tool-cache: make unzip and 7z extract quiet by default This avoids spamming the log when unzipping large archives. * tool-cache: make tar, unzip and 7z verbose when `core.isDebug` Make the extract function print the list of extracted file if the action is run in debug mode.
This commit is contained in:
@@ -334,7 +334,7 @@ describe('@actions/tool-cache', function() {
|
||||
.readFileSync(path.join(tempDir, 'mock7zr-args.txt'))
|
||||
.toString()
|
||||
.trim()
|
||||
).toBe(`x -bb1 -bd -sccUTF-8 ${_7zFile}`)
|
||||
).toBe(`x -bb0 -bd -sccUTF-8 ${_7zFile}`)
|
||||
expect(fs.existsSync(path.join(extPath, 'file.txt'))).toBeTruthy()
|
||||
expect(
|
||||
fs.existsSync(path.join(extPath, 'file-with-ç-character.txt'))
|
||||
|
||||
Reference in New Issue
Block a user