@google-github-actions/setup-cloud-sdk
@google-github-actions/setup-cloud-sdk / test-util / 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.
new TestToolCache():
TestToolCache
static
rootDir:string
Defined in: test-util.ts:32
static
tempDir:string
Defined in: test-util.ts:34
static
toolsDir:string
Defined in: test-util.ts:33
static
start():Promise
<void
>
Defined in: test-util.ts:42
Creates temporary directories for the runner cache and temp.
Promise
<void
>
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.
Promise
<void
>