Skip to content

Commit 9784852

Browse files
author
Indra Prajapati
committed
add
1 parent 6159ed2 commit 9784852

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ jobs:
3434
uses: mikepenz/action-junit-report@v3
3535
with:
3636
report_paths: 'reports/junit-report.xml'
37+
- name: Add Test Summary to GitHub Actions
38+
run: |
39+
echo "### Test Execution Summary" >> $GITHUB_STEP_SUMMARY
40+
echo "| Status | Test Name |" >> $GITHUB_STEP_SUMMARY
41+
echo "|--------|-----------|" >> $GITHUB_STEP_SUMMARY
42+
cat test-results/cucumber-report.json | jq -r '.[] | "| ✅ Pass | \(.name) |"' >> $GITHUB_STEP_SUMMARY
43+
cat test-results/cucumber-report.json | jq -r '.[] | select(.status=="failed") | "| ❌ Fail | \(.name) |"' >> $GITHUB_STEP_SUMMARY
3744
- uses: actions/upload-artifact@v4
3845
if: ${{ !cancelled() }}
3946
with:

0 commit comments

Comments
 (0)