Skip to content

Commit

Permalink
chore: enhance readability checks for xml files in test_results direc…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
tsviz committed Dec 4, 2024
1 parent 089ee8b commit 2dc3464
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,14 +213,20 @@ jobs:
- name: Ensure junit-path exists and that all xml files are readable in path 'test_results/**/*xml' with this syntax
run: |
if [ ! -d "test_results" ]; then
echo "Warning: test_results directory does not exist"
elif ! ls test_results/*xml 1> /dev/null 2>&1; then
echo "Warning: No xml files found in test_results directory"
elif ! ls -l test_results/*xml 1> /dev/null 2>&1; then
echo "Warning: Not all xml files in test_results directory are readable"
else
echo "All xml files in test_results directory are readable"
ls -l test_results/*xml
echo "test_results directory does not exist"
exit 0
fi
if ! ls test_results/*xml 1> /dev/null 2>&1; then
echo "No xml files found in test_results directory"
exit 0
fi
if ! ls -l test_results/*xml 1> /dev/null 2>&1; then
echo "Not all xml files in test_results directory are readable"
exit 0
fi
echo "All xml files in test_results directory are readable"
ls -l test_results/*xml
- name: Setup tmate session
uses: mxschmitt/[email protected]
Expand Down

0 comments on commit 2dc3464

Please sign in to comment.