Skip to content

Latest commit

 

History

History
77 lines (41 loc) · 1.78 KB

TestToolCache.md

File metadata and controls

77 lines (41 loc) · 1.78 KB

@google-github-actions/setup-cloud-sdk


@google-github-actions/setup-cloud-sdk / test-util / TestToolCache

Class: TestToolCache

Defined in: test-util.ts:31

Creates an overridden runner cache and tool path. This is slightly complicated by the fact that the runner initializes its cache path exactly once at startup, so this must be imported and called BEFORE the toolcache is used.

Constructors

new TestToolCache()

new TestToolCache(): TestToolCache

Returns

TestToolCache

Properties

rootDir

static rootDir: string

Defined in: test-util.ts:32


tempDir

static tempDir: string

Defined in: test-util.ts:34


toolsDir

static toolsDir: string

Defined in: test-util.ts:33

Methods

start()

static start(): Promise<void>

Defined in: test-util.ts:42

Creates temporary directories for the runner cache and temp.

Returns

Promise<void>


stop()

static stop(): Promise<void>

Defined in: test-util.ts:64

Restores the Action's runner to use the original directories and deletes the temporary files.

Returns

Promise<void>