Skip to content

Latest commit

 

History

History
118 lines (64 loc) · 2.53 KB

test_util.TestToolCache.md

File metadata and controls

118 lines (64 loc) · 2.53 KB

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

Class: TestToolCache

test-util.TestToolCache

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.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TestToolCache()

Properties

#originalTempDir

Static Private Optional #originalTempDir: string

Defined in

test-util.ts:37


#originalToolsDir

Static Private Optional #originalToolsDir: string

Defined in

test-util.ts:36


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>

Creates temporary directories for the runner cache and temp.

Returns

Promise<void>

Defined in

test-util.ts:42


stop

Static stop(): Promise<void>

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

Returns

Promise<void>

Defined in

test-util.ts:61