diff --git a/action.yml b/action.yml index 35ba0bd..ec75f6c 100644 --- a/action.yml +++ b/action.yml @@ -97,6 +97,14 @@ runs: if [[ "${{ inputs.phpunit_fail_on_warning }}" == "true" ]]; then PHPUNIT_OPTIONS="$PHPUNIT_OPTIONS --fail-on-warning" fi + # Special filtering for silverstripe/framework testsuites + if [[ "$PHPUNIT_SUITE" == "framework-orm" ]]; then + PHPUNIT_OPTIONS="$PHPUNIT_OPTIONS --filter /ORM/" + fi + if [[ "$PHPUNIT_SUITE" == "framework-core" ]]; then + PHPUNIT_OPTIONS="$PHPUNIT_OPTIONS --exclude-filter /ORM/" + fi + echo "PHPUNIT_OPTIONS is $PHPUNIT_OPTIONS" vendor/bin/phpunit $PHPUNIT_OPTIONS echo "Passed"