From f37e56d68eecd17f816299ce7233d9d51f1851b3 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Thu, 26 Sep 2024 18:56:12 +1200 Subject: [PATCH] FIX Filter and exclude framwork testsuites --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) 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"