We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98d65d6 commit eb62aa3Copy full SHA for eb62aa3
1 file changed
.github/workflows/samples-php8.yaml
@@ -41,4 +41,13 @@ jobs:
41
run: composer install
42
- name: phpunit
43
working-directory: ${{ matrix.sample }}
44
- run: vendor/bin/phpunit
+ run: |
45
+ if [ -f phpunit.xml ] || [ -f phpunit.xml.dist ]; then
46
+ vendor/bin/phpunit -c "$( [ -f phpunit.xml ] && echo phpunit.xml || echo phpunit.xml.dist )"
47
+ elif [ -d tests ]; then
48
+ vendor/bin/phpunit tests
49
+ elif [ -d test ]; then
50
+ vendor/bin/phpunit test
51
+ else
52
+ echo "No PHPUnit config or tests directory in ${{ matrix.sample }}; skipping."
53
+ fi
0 commit comments