Skip to content

Commit 803b2d6

Browse files
fix: fancy report
1 parent 7aef4dd commit 803b2d6

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/quality.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -341,8 +341,8 @@ jobs:
341341
};
342342
343343
const bundleStatus = percent === 'N/A' ? '⚠️' :
344-
parseFloat(percent) > 0 ? '🔺' :
345-
parseFloat(percent) < 0 ? '🔽' : '✅';
344+
parseFloat(percent) > 0 ? '🔺' :
345+
parseFloat(percent) < 0 ? '🔽' : '✅';
346346
347347
const ciSection = `## CI Results
348348
@@ -354,22 +354,16 @@ jobs:
354354
| ${testResults.total} | ${testResults.passed} | ${testResults.failed} | ${testResults.flaky} | ${testResults.skipped} |
355355
356356
<details>
357-
<summary>Test Changes Summary</summary>
357+
<summary>Test Changes Summary ✨(${testComparison.new.length}) ⏭️(${testResults.skipped}) 🗑️(${testComparison.deleted.length})</summary>
358358
359-
#### 🆕 New Tests (${testComparison.new.length})
360-
\`\`\`
361-
${testComparison.new.length > 0 ? testComparison.new.join('\n') : 'None'}
362-
\`\`\`
359+
#### ✨ New Tests (${testComparison.new.length})
360+
${testComparison.new.length > 0 ? testComparison.new.map((test, i) => `${i + 1}. ${test}`).join('\n') : 'None'}
363361
364-
#### ⏭️ Skipped Tests (${testComparison.skipped.length})
365-
\`\`\`
366-
${testComparison.skipped.length > 0 ? testComparison.skipped.join('\n') : 'None'}
367-
\`\`\`
362+
#### ⏭️ Skipped Tests (${testResults.skipped})
363+
${testResults.tests.filter(t => t.skipped).map((test, i) => `${i + 1}. ${test.title} (${test.file})`).join('\n') || 'None'}
368364
369365
#### 🗑️ Deleted Tests (${testComparison.deleted.length})
370-
\`\`\`
371-
${testComparison.deleted.length > 0 ? testComparison.deleted.join('\n') : 'None'}
372-
\`\`\`
366+
${testComparison.deleted.length > 0 ? testComparison.deleted.map((test, i) => `${i + 1}. ${test}`).join('\n') : 'None'}
373367
</details>
374368
375369
### Bundle Size: ${bundleStatus}

0 commit comments

Comments
 (0)