build: fix gh workflow script

This commit is contained in:
Csaba Tuncsik 2023-06-16 13:22:14 +02:00
parent 2a74248d60
commit 53fad99029

View file

@ -44,8 +44,8 @@ const hasFunctionOrClass = async filePath => {
const program = async () => {
// Run a git command to get a list of all files in the commit
const changedFilesCommand = "git diff --name-only --diff-filter=d origin/master..HEAD";
const changedFiles = await execAsync(changedFilesCommand).then(({stdout}) => stdout.toString().trim().split('\n'));
const changedFilesCommand = "git diff --name-only --diff-filter=d origin/master...HEAD";
const changedFiles = await execAsync(changedFilesCommand).then(stdout => stdout.toString().trim().split('\n').filter(Boolean));
// Get all .spec.ts and .test.ts files from the packages
const specAndTestTsFiles = await glob('../../packages/*/**/{test,__tests__}/*.{spec,test}.ts');