Skip to content

Commit d15506e

Browse files
committed
Removed windows from matrix directories
1 parent c6062bd commit d15506e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

genMatrix.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ const testFiles = [
88
];
99

1010
const nodeDirRegex = /^\d+$/;
11+
const windowsDirRegex = /^windows-/;
1112

1213
const areTestFilesChanged = (changedFiles) => changedFiles
1314
.some((file) => testFiles.includes(file));
1415

15-
// Returns a list of the child directories in the given path
16+
// Returns a list of the child directories in the given path, excluding those starting with 'windows-'
1617
const getChildDirectories = (parent) => fs.readdirSync(parent, { withFileTypes: true })
17-
.filter((dirent) => dirent.isDirectory())
18+
.filter((dirent) => dirent.isDirectory() && !windowsDirRegex.test(dirent.name))
1819
.map(({ name }) => path.resolve(parent, name));
1920

2021
const getNodeVersionDirs = (base) => getChildDirectories(base)

0 commit comments

Comments
 (0)