Skip to content

Commit 91b0761

Browse files
fix: only actual changes
1 parent a62870f commit 91b0761

File tree

1 file changed

+19
-12
lines changed

1 file changed

+19
-12
lines changed

.github/workflows/quality.yml

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,24 @@ jobs:
349349
parseFloat(percent) > 0 ? '🔺' :
350350
parseFloat(percent) < 0 ? '🔽' : '✅';
351351
352+
// Generate test changes summary based on actual changes
353+
let testChangesSummary = '';
354+
if (testComparison.new.length > 0 || testComparison.deleted.length > 0 || testComparison.skipped.length > 0) {
355+
testChangesSummary = `
356+
<details>
357+
<summary>Test Changes Summary ✨${testComparison.new.length} ${testComparison.skipped.length > 0 ? `⏭️${testComparison.skipped.length}` : ''} 🗑️${testComparison.deleted.length}</summary>
358+
359+
${testComparison.new.length > 0 ? `#### ✨ New Tests (${testComparison.new.length})
360+
${testComparison.new.map((test, i) => `${i + 1}. ${test}`).join('\n')}` : ''}
361+
362+
${testComparison.skipped.length > 0 ? `#### ⏭️ Skipped Tests (${testComparison.skipped.length})
363+
${testComparison.skipped.map((test, i) => `${i + 1}. ${test}`).join('\n')}` : ''}
364+
365+
${testComparison.deleted.length > 0 ? `#### 🗑️ Deleted Tests (${testComparison.deleted.length})
366+
${testComparison.deleted.map((test, i) => `${i + 1}. ${test}`).join('\n')}` : ''}
367+
</details>`;
368+
}
369+
352370
const ciSection = `## CI Results
353371
354372
### Test Status: <span style="color: ${statusColor};">${status}</span>
@@ -358,18 +376,7 @@ jobs:
358376
|:-----:|:------:|:------:|:-----:|:-------:|
359377
| ${testResults.total} | ${testResults.passed} | ${testResults.failed} | ${testResults.flaky} | ${testResults.skipped} |
360378
361-
<details>
362-
<summary>Test Changes Summary ✨${testComparison.new.length} ⏭️${testComparison.skipped.length} 🗑️${testComparison.deleted.length}</summary>
363-
364-
#### ✨ New Tests (${testComparison.new.length})
365-
${testComparison.new.length > 0 ? testComparison.new.map((test, i) => `${i + 1}. ${test}`).join('\n') : 'None'}
366-
367-
#### ⏭️ Skipped Tests (${testComparison.skipped.length})
368-
${testComparison.skipped.length > 0 ? testComparison.skipped.map((test, i) => `${i + 1}. ${test}`).join('\n') : 'None'}
369-
370-
#### 🗑️ Deleted Tests (${testComparison.deleted.length})
371-
${testComparison.deleted.length > 0 ? testComparison.deleted.map((test, i) => `${i + 1}. ${test}`).join('\n') : 'None'}
372-
</details>
379+
${testChangesSummary}
373380
374381
### Bundle Size: ${bundleStatus}
375382
Current: ${formatSize(currentSize)} | Main: ${formatSize(mainSize)}

0 commit comments

Comments
 (0)