refactor(ci): update test result handling in CI workflows
- Replaced references to core and additional tests with stable and experimental tests in the CI configuration. - Adjusted the logic for summarizing test outcomes to reflect the new test categories. - Updated the paths for test result files to ensure accurate reporting. Benefits: - Improves clarity and accuracy in CI test reporting, aligning with the new test structure.
This commit is contained in:
25
.github/workflows/ci.yml
vendored
25
.github/workflows/ci.yml
vendored
@@ -631,9 +631,10 @@ jobs:
|
|||||||
name: test-results-${{ matrix.name }}
|
name: test-results-${{ matrix.name }}
|
||||||
path: |
|
path: |
|
||||||
build/*test_results.xml
|
build/*test_results.xml
|
||||||
core_test.log
|
stable_test.log
|
||||||
additional_test.log
|
experimental_test.log
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
if-no-files-found: ignore
|
||||||
|
|
||||||
- name: Upload Build Logs on Failure
|
- name: Upload Build Logs on Failure
|
||||||
if: failure()
|
if: failure()
|
||||||
@@ -695,18 +696,18 @@ jobs:
|
|||||||
echo "- ❌ Build: Failed" >> $GITHUB_STEP_SUMMARY
|
echo "- ❌ Build: Failed" >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${{ steps.test_core.outcome }}" == "success" ]]; then
|
if [[ "${{ steps.test_stable.outcome }}" == "success" ]]; then
|
||||||
echo "- ✅ Core Tests: Passed" >> $GITHUB_STEP_SUMMARY
|
echo "- ✅ Stable Tests: Passed" >> $GITHUB_STEP_SUMMARY
|
||||||
else
|
else
|
||||||
echo "- ❌ Core Tests: Failed" >> $GITHUB_STEP_SUMMARY
|
echo "- ❌ Stable Tests: Failed" >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${{ steps.test_additional.outcome }}" == "success" ]]; then
|
if [[ "${{ steps.test_experimental.outcome }}" == "success" ]]; then
|
||||||
echo "- ✅ Additional Tests: Passed" >> $GITHUB_STEP_SUMMARY
|
echo "- ✅ Experimental Tests: Passed" >> $GITHUB_STEP_SUMMARY
|
||||||
elif [[ "${{ steps.test_additional.outcome }}" == "failure" ]]; then
|
elif [[ "${{ steps.test_experimental.outcome }}" == "failure" ]]; then
|
||||||
echo "- ⚠️ Additional Tests: Failed (informational)" >> $GITHUB_STEP_SUMMARY
|
echo "- ⚠️ Experimental Tests: Failed (informational)" >> $GITHUB_STEP_SUMMARY
|
||||||
else
|
else
|
||||||
echo "- ⏭️ Additional Tests: Skipped" >> $GITHUB_STEP_SUMMARY
|
echo "- ⏭️ Experimental Tests: Skipped" >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
@@ -720,10 +721,10 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Test results
|
# Test results
|
||||||
if [ -f build/core_test_results.xml ]; then
|
if [ -f build/stable_test_results.xml ]; then
|
||||||
echo "### Test Results" >> $GITHUB_STEP_SUMMARY
|
echo "### Test Results" >> $GITHUB_STEP_SUMMARY
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
grep -E "tests=|failures=|errors=" build/core_test_results.xml | head -1 || echo "Test summary not available"
|
grep -E "tests=|failures=|errors=" build/stable_test_results.xml | head -1 || echo "Test summary not available"
|
||||||
echo '```' >> $GITHUB_STEP_SUMMARY
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -1,5 +1,3 @@
|
|||||||
# .github/workflows/release.yml
|
|
||||||
|
|
||||||
name: Release
|
name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
|||||||
Reference in New Issue
Block a user