From 53fad990298e70a210b2eb3c6e8296ad873fe477 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Fri, 16 Jun 2023 13:22:14 +0200 Subject: [PATCH] build: fix gh workflow script --- .github/scripts/check-tests.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/scripts/check-tests.mjs b/.github/scripts/check-tests.mjs index 64b29a57fd..fd0cfab2f0 100644 --- a/.github/scripts/check-tests.mjs +++ b/.github/scripts/check-tests.mjs @@ -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');