Skip to content

Commit

Permalink
Update tester
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey authored Jan 6, 2025
1 parent 4fe8f02 commit 3469ad8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .scripts/tester
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
#!/bin/sh
#!/bin/bash
export SYMFONY_DEPRECATIONS_HELPER=disabled
FAIL=0
FAILED=()
for D in */; do
echo "::group::Testing $D"
cd $D
composer test
if [ $? -ne 0 ]; then
FAIL=1
FAILED+=($D)
fi
cd ..
echo "::endgroup"
done

echo "::group::Summary"
if [${#FAILED[@]} -gt 0] ; then
echo "Failed tests: ${FAILED[@]}"
else
echo "All tests passed!"
fi
echo "::endgroup"

exit $FAIL

0 comments on commit 3469ad8

Please sign in to comment.