Skip to content

Commit

Permalink
Merge pull request #40 from creative-commoners/pulls/1.2/filter-frame…
Browse files Browse the repository at this point in the history
…work

FIX Filter and exclude framwork testsuites
  • Loading branch information
GuySartorelli authored Sep 26, 2024
2 parents 57469f7 + f37e56d commit f8f035d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit f8f035d

Please sign in to comment.