From 8ee421747138dcc4611253776f4d0541b9af8083 Mon Sep 17 00:00:00 2001 From: Kristian Jones Date: Mon, 8 Feb 2021 17:18:25 -0600 Subject: [PATCH] chore(dev-actions): Setup GitHub Actions grouping for Testing (#224) --- Testing/Runner/index.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Testing/Runner/index.ts b/Testing/Runner/index.ts index c47bcf9..6190d4b 100644 --- a/Testing/Runner/index.ts +++ b/Testing/Runner/index.ts @@ -13,7 +13,7 @@ async function runTests(): Promise { const errs: Error[] = []; for (const testFolder of testFolders) { - console.log(`Starting Test Folder: ${testFolder.testName}`); + console.log(`::group::Test ${testFolder.testName}`); await run('npm ci', { cwd: testFolder.testFolderPath, @@ -26,8 +26,14 @@ async function runTests(): Promise { cwd: testFolder.testFolderPath, }); } catch (err) { + console.error( + `::warning file=${testFolder.testFolderPath}/package.json,line=0,col=0::${err.message}`, + ); + errs.push(err); } + + console.log(`::endgroup::`); } if (errs.length > 0) {