mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-05-05 09:39:54 +02:00
Use zstd instead of gzip
This commit is contained in:
parent
eb78578266
commit
7c7ab7c49e
5 changed files with 31 additions and 13 deletions
|
@ -45,7 +45,15 @@ test("extract tar", async () => {
|
|||
expect(execMock).toHaveBeenCalledTimes(1);
|
||||
expect(execMock).toHaveBeenCalledWith(
|
||||
`"${tarPath}"`,
|
||||
["-xz", "-f", archivePath, "-P", "-C", workspace],
|
||||
[
|
||||
"--use-compress-program",
|
||||
"zstd --long=31 -d",
|
||||
"-xf",
|
||||
archivePath,
|
||||
"-P",
|
||||
"-C",
|
||||
workspace
|
||||
],
|
||||
{ cwd: undefined }
|
||||
);
|
||||
});
|
||||
|
@ -70,8 +78,9 @@ test("create tar", async () => {
|
|||
expect(execMock).toHaveBeenCalledWith(
|
||||
`"${tarPath}"`,
|
||||
[
|
||||
"-cz",
|
||||
"-f",
|
||||
"--use-compress-program",
|
||||
"zstd -T0 --long=31",
|
||||
"-cf",
|
||||
CacheFilename,
|
||||
"-C",
|
||||
workspace,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue