@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
TestToolCache
staticrootDir:string
Defined in: test-util.ts:32
statictempDir:string
Defined in: test-util.ts:34
statictoolsDir:string
Defined in: test-util.ts:33
staticstart():Promise<void>
Defined in: test-util.ts:42
Creates temporary directories for the runner cache and temp.
Promise<void>
staticstop():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>