Skip to content

Commit cbb82c8

Browse files
committed
Remove json test report from job
Signed-off-by: Natalia Wochtman <natalia.wochtman@intel.com>
1 parent 1aeab69 commit cbb82c8

File tree

1 file changed

+2
-39
lines changed

1 file changed

+2
-39
lines changed

.github/workflows/nightly-tests.yml

Lines changed: 2 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
uses: step-security/harden-runner@6c439dc8bdf85cadbbce9ed30d1c7b959517bc49 # v2.12.2
129129
with:
130130
egress-policy: audit
131-
- name: 'preparation: Evaluate choosen validation-test-port-p and validation-test-port-r'
131+
- name: 'preparation: Evaluate chosen validation-test-port-p and validation-test-port-r'
132132
run: |
133133
eval "export TEST_PORT_P=TEST_VF_PORT_P_0"
134134
eval "export TEST_PORT_R=TEST_VF_PORT_P_1"
@@ -158,41 +158,4 @@ jobs:
158158
with:
159159
name: nightly-tests-report
160160
path: |
161-
report.html
162-
- name: "Add report to summary"
163-
if: always()
164-
run: |
165-
{
166-
echo "## Nightly Tests Report"
167-
echo ""
168-
# Check if JSON report exists
169-
if [ -f "report.json" ]; then
170-
# Parse JSON report
171-
PASSED=$(jq '.summary.passed // 0' report.json)
172-
FAILED=$(jq '.summary.failed // 0' report.json)
173-
SKIPPED=$(jq '.summary.skipped // 0' report.json)
174-
ERROR=$(jq '.summary.errors // 0' report.json)
175-
# Add summary stats
176-
echo "| Status | Count |"
177-
echo "| ------ | ----- |"
178-
echo "| ✅ Passed | ${PASSED:-0} |"
179-
echo "| ❌ Failed | ${FAILED:-0} |"
180-
echo "| ⚠️ Error | ${ERROR:-0} |"
181-
echo "| ⏭️ Skipped | ${SKIPPED:-0} |"
182-
echo ""
183-
# Add test result details if available
184-
TOTAL=$((${PASSED:-0} + ${FAILED:-0} + ${ERROR:-0} + ${SKIPPED:-0}))
185-
echo "**Total Tests:** $TOTAL"
186-
echo ""
187-
if [ "${FAILED:-0}" -gt 0 ] || [ "${ERROR:-0}" -gt 0 ]; then
188-
echo "❌ **Some tests failed!** Please check the detailed report."
189-
else
190-
echo "✅ **All tests passed!**"
191-
fi
192-
echo ""
193-
# Add link to full report artifact
194-
echo "📄 [Download Full HTML Report](https://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}/artifacts/${{ steps.upload-report.outputs.artifact-id }})"
195-
else
196-
echo "❌ No report.json file was generated"
197-
fi
198-
} >> "$GITHUB_STEP_SUMMARY"
161+
report.html

0 commit comments

Comments
 (0)