mirror of
https://github.com/affaan-m/ECC.git
synced 2026-09-08 07:37:48 +02:00
fix(ci): add tool cache directories to check-unicode-safety ignore list
Signed-off-by: aoright <102943475+aoright@users.noreply.github.com>
This commit is contained in:
@@ -15,6 +15,10 @@ const ignoredDirs = new Set([
|
||||
'.dmux',
|
||||
'.next',
|
||||
'.venv',
|
||||
'.pytest_cache',
|
||||
'.ruff_cache',
|
||||
'.turbo',
|
||||
'.cache',
|
||||
'coverage',
|
||||
'venv',
|
||||
]);
|
||||
|
||||
@@ -198,6 +198,24 @@ if (
|
||||
passed++;
|
||||
else failed++;
|
||||
|
||||
if (
|
||||
test('skips tool cache directories (.pytest_cache, .ruff_cache, .turbo, .cache)', () => {
|
||||
const root = makeTempRoot('ecc-unicode-cache-');
|
||||
for (const cacheDir of ['.pytest_cache', '.ruff_cache', '.turbo', '.cache']) {
|
||||
fs.mkdirSync(path.join(root, cacheDir), { recursive: true });
|
||||
fs.writeFileSync(
|
||||
path.join(root, cacheDir, 'cache-data.json'),
|
||||
`{"cached": "${rocketEmoji}"}\n`
|
||||
);
|
||||
}
|
||||
|
||||
const result = runCheck(root);
|
||||
assert.strictEqual(result.status, 0, result.stdout + result.stderr);
|
||||
})
|
||||
)
|
||||
passed++;
|
||||
else failed++;
|
||||
|
||||
console.log(`\nPassed: ${passed}`);
|
||||
console.log(`Failed: ${failed}`);
|
||||
process.exit(failed > 0 ? 1 : 0);
|
||||
|
||||
Reference in New Issue
Block a user