Skip to content

Commit b38f026

Browse files
author
Indra Prajapati
committed
update
1 parent e8c07cd commit b38f026

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,19 @@ jobs:
3535
# with:
3636
# report_paths: 'reports/junit-report.xml'
3737
- name: Add Test Case-wise Summary to GitHub Actions
38-
if: always()
38+
if: always()
3939
run: |
4040
echo "### 📝 Test Execution Summary" >> $GITHUB_STEP_SUMMARY
4141
echo "| Status | Test Case | Feature |" >> $GITHUB_STEP_SUMMARY
42-
echo "|---------|-----------|---------|" >> $GITHUB_STEP_SUMMARY
43-
cat test-results/cucumber-report.json | jq -r '.[] | .elements[] | "| ✅ Pass | \(.name) | \(.keyword) |"' >> $GITHUB_STEP_SUMMARY
44-
cat test-results/cucumber-report.json | jq -r '.[] | .elements[] | select(.steps[].result.status=="failed") | "| ❌ Fail | \(.name) | \(.keyword) |"' >> $GITHUB_STEP_SUMMARY
42+
echo "|---------|----------|---------|" >> $GITHUB_STEP_SUMMARY
43+
cat reports/cucumber-report.json | jq -r '.[] |
44+
.elements[] |
45+
select(.steps[].result.status=="passed") |
46+
"| ✅ Pass | \(.name) | \(.uri | split("/") | last | sub(".feature"; "")) |"' >> $GITHUB_STEP_SUMMARY
47+
cat reports/cucumber-report.json | jq -r '.[] |
48+
.elements[] |
49+
select(.steps[].result.status=="failed") |
50+
"| ❌ Fail | \(.name) | \(.uri | split("/") | last | sub(".feature"; "")) |"' >> $GITHUB_STEP_SUMMARY
4551
- uses: actions/upload-artifact@v4
4652
if: ${{ !cancelled() }}
4753
with:

0 commit comments

Comments
 (0)