Skip to content

Commit

Permalink
Merge pull request #4989 from FlowFuse/revert-check-test-status-job-s…
Browse files Browse the repository at this point in the history
…ummary

Revert "Create check-tests-status job summary"
  • Loading branch information
hardillb authored Jan 7, 2025
2 parents ca7c238 + 2d68e8b commit e8788a2
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,30 +59,17 @@ jobs:
const failedJobs = relevantJobs.filter(job => job.conclusion === 'failure');
const allSkippedJobs = relevantJobs.every(job => job.conclusion === 'skipped');
const { summary } = require('@actions/core');
if (failedJobs.length > 0) {
console.log('🚨 The following tests failed:');
await summary.addHeading('Failed Tests 🚨');
let failedList = '';
failedJobs.forEach(job => {
console.log(`❌ ${job.name}`);
failedList += `- ❌ ${job.name}\n`;
});
await summary.addRaw(failedList);
await summary.write();
core.setOutput('jobs_status', 'failure');
} else if (allSkippedJobs) {
console.log('⏩ All tests were skipped ⏩');
await summary.addHeading('Test Status ⏩');
await summary.addRaw('All tests were skipped');
await summary.write();
core.setOutput('jobs_status', 'skipped');
} else {
console.log('✅ Required tests passed successfully ✅');
await summary.addHeading('Test Status ✅');
await summary.addRaw('All required tests passed successfully');
await summary.write();
core.setOutput('jobs_status', 'success');
}
Expand Down

0 comments on commit e8788a2

Please sign in to comment.