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:
Arthur Baars
2020-04-29 17:33:01 +02:00
committed by GitHub
parent 4e734dc4c1
commit 57d20b4db4
2 changed files with 12 additions and 3 deletions

View File

@@ -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'))