Merge branch 'dev' of https://gitea.verdnatura.es/verdnatura/salix-front into 8833-addColumnClassColor
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
commit
2df532d739
|
@ -44,7 +44,7 @@ export async function findImports(targetFile, visited = new Set(), identation =
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
return getUniques(fullTree); // Remove duplicates
|
return getUniques([...fullTree, targetFile]); // Remove duplicates
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUniques(array) {
|
function getUniques(array) {
|
||||||
|
|
|
@ -25,7 +25,7 @@ async function getChangedModules() {
|
||||||
if (change.startsWith(E2E_PATH)) changedArray.push(change);
|
if (change.startsWith(E2E_PATH)) changedArray.push(change);
|
||||||
changedModules = new Set(changedArray);
|
changedModules = new Set(changedArray);
|
||||||
}
|
}
|
||||||
return [...changedModules].join('\n');
|
return cleanSpecs(changedModules).join('\n');
|
||||||
}
|
}
|
||||||
|
|
||||||
getChangedModules()
|
getChangedModules()
|
||||||
|
@ -34,3 +34,20 @@ getChangedModules()
|
||||||
console.error(e);
|
console.error(e);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
function cleanSpecs(changedModules) {
|
||||||
|
let specifics = [];
|
||||||
|
const modules = [];
|
||||||
|
for (const changed of changedModules) {
|
||||||
|
if (changed.endsWith('*.spec.js')) {
|
||||||
|
modules.push(changed);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
specifics.push(changed);
|
||||||
|
}
|
||||||
|
specifics = specifics.filter(
|
||||||
|
(spec) => !modules.some((module) => spec.startsWith(module.split('**')[0])),
|
||||||
|
);
|
||||||
|
|
||||||
|
return [...modules, ...specifics];
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue