Skip to content

Commit 1c60517

Browse files
committed
Add test file to cachePath
1 parent e29d481 commit 1c60517

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/downloader.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ export async function download(
8989
core.debug(`Moving ${destFilePath} to ${cachePath}`)
9090
await io.mkdirP(cacheDirectory)
9191
await io.mv(destFilePath, cachePath)
92+
// Create test file in cacheDirectory
93+
const testFilePath = `${cacheDirectory}/test.txt`
94+
core.debug(`Creating test file at ${testFilePath}`)
95+
await fs.promises.writeFile(
96+
testFilePath,
97+
`This is a test file to verify that the cache directory is working correctly.`
98+
)
9299
// List files in cache directory
93100
const filesInCacheDirectory = await (
94101
await glob.create(`${cacheDirectory}/**`)

0 commit comments

Comments
 (0)