diff --git a/__tests__/internal-globber.test.ts b/__tests__/internal-globber.test.ts index fe471e5..4ae670f 100644 --- a/__tests__/internal-globber.test.ts +++ b/__tests__/internal-globber.test.ts @@ -255,6 +255,7 @@ describe('globber', () => { 'file-under-a' ) ]) + await unlinkSymlinkDir(itemPaths) }) it('detects cycle starting from symlink when followSymbolicLinks=true', async () => { @@ -861,6 +862,14 @@ async function createHiddenFile(file: string, content: string): Promise { function getTestTemp(): string { return path.join(__dirname, '_temp', 'glob') } +/** + * Deletes a symlink directory + */ +async function unlinkSymlinkDir(links: string[]): Promise { + for (const link of links) { + await fs.rm(link, {recursive: true, force: true}) + } +} /** * Creates a symlink directory on OSX/Linux, and a junction point directory on Windows. diff --git a/package-lock.json b/package-lock.json index 0ccc9ac..7b95425 100644 --- a/package-lock.json +++ b/package-lock.json @@ -30,12 +30,21 @@ }, "node_modules/@actions/core": { "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.10.0.tgz", "integrity": "sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==", "dependencies": { "@actions/http-client": "^2.0.1", "uuid": "^8.3.2" } }, + "node_modules/@actions/http-client": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.1.0.tgz", + "integrity": "sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==", + "dependencies": { + "tunnel": "^0.0.6" + } + }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", @@ -65,6 +74,22 @@ "engines": { "node": "*" } + }, + "node_modules/tunnel": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", + "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", + "engines": { + "node": ">=0.6.11 <=0.7.0 || >=0.7.3" + } + }, + "node_modules/uuid": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "bin": { + "uuid": "dist/bin/uuid" + } } }, "bugs": {