Skip to content

Commit

Permalink
chore(dev-actions): Setup GitHub Actions grouping for Testing (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
EntraptaJ authored Feb 8, 2021
1 parent 774d023 commit 8ee4217
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Testing/Runner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function runTests(): Promise<void> {
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,
Expand All @@ -26,8 +26,14 @@ async function runTests(): Promise<void> {
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) {
Expand Down

0 comments on commit 8ee4217

Please sign in to comment.