mirror of
https://github.com/actions/cache.git
synced 2025-07-12 09:10:44 +00:00
unit test coverage for caching multiple dirs
This commit is contained in:
parent
e0d1942524
commit
057d9de723
11 changed files with 161 additions and 80 deletions
|
@ -48,7 +48,7 @@ export async function createTar(
|
|||
archiveFolder: string,
|
||||
sourceDirectories: string[]
|
||||
): Promise<void> {
|
||||
// TODO: will want to stream sourceDirectories into tar
|
||||
// Write source directories to manifest.txt to avoid command length limits
|
||||
const manifestFilename = "manifest.txt";
|
||||
writeFileSync(
|
||||
path.join(archiveFolder, manifestFilename),
|
||||
|
|
|
@ -2,6 +2,7 @@ import * as core from "@actions/core";
|
|||
import * as io from "@actions/io";
|
||||
import * as glob from "@actions/glob";
|
||||
import * as fs from "fs";
|
||||
import * as os from "os";
|
||||
import * as path from "path";
|
||||
import * as uuidV4 from "uuid/v4";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue