@google-github-actions/setup-cloud-sdk / Exports / test-util / 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.
• new TestToolCache()
▪ Static
Private
Optional
#originalTempDir: string
▪ Static
Private
Optional
#originalToolsDir: string
▪ Static
rootDir: string
▪ Static
tempDir: string
▪ Static
toolsDir: string
▸ Static
start(): Promise
<void
>
Creates temporary directories for the runner cache and temp.
Promise
<void
>
▸ Static
stop(): Promise
<void
>
Restores the Action's runner to use the original directories and deletes the temporary files.
Promise
<void
>