Add _run_tests bash function
This commit is contained in:
parent
de4f0170e2
commit
b0b45105d7
19
.github/workflows/tests.yml
vendored
19
.github/workflows/tests.yml
vendored
@ -149,4 +149,21 @@ jobs:
|
|||||||
echo "::endgroup::"
|
echo "::endgroup::"
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -print0 | xargs -0 -n1 dirname | sort | parallel ./phpunit --colors=always --exclude-group tty,benchmark,intl-dat
|
run: |
|
||||||
|
_run_tests() {
|
||||||
|
ok=0
|
||||||
|
echo "::group::$1"
|
||||||
|
|
||||||
|
# Run the tests
|
||||||
|
./phpunit --colors=always --exclude-group tty,benchmark,intl-dat ./$1 2>&1 || ok=1
|
||||||
|
echo ::endgroup::
|
||||||
|
|
||||||
|
if [ $ok -ne 0 ]; then
|
||||||
|
echo "::error::$1 failed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
return $ok
|
||||||
|
}
|
||||||
|
export -f _run_tests
|
||||||
|
|
||||||
|
find src/Symfony -mindepth 2 -type f -name phpunit.xml.dist -not -wholename '*/Bridge/PhpUnit/*' -print0 | xargs -0 -n1 dirname | sort | parallel _run_tests
|
||||||
|
Reference in New Issue
Block a user