ci: run unit tests only (feature tests need full app)
This commit is contained in:
parent
e0f9a87673
commit
769c888d74
1 changed files with 9 additions and 3 deletions
|
|
@ -51,12 +51,18 @@ jobs:
|
|||
echo "Pint not installed, skipping"
|
||||
fi
|
||||
|
||||
- name: Run tests
|
||||
- name: Run unit tests
|
||||
run: |
|
||||
if [ -f vendor/bin/pest ]; then
|
||||
vendor/bin/pest --ci --coverage
|
||||
if [ -d tests/Unit ] || [ -d tests/unit ]; then
|
||||
vendor/bin/pest tests/Unit --ci
|
||||
elif [ -d src/Tests/Unit ]; then
|
||||
vendor/bin/pest src/Tests/Unit --ci
|
||||
else
|
||||
echo "No unit test directory found, skipping"
|
||||
fi
|
||||
elif [ -f vendor/bin/phpunit ]; then
|
||||
vendor/bin/phpunit --coverage-text
|
||||
vendor/bin/phpunit --testsuite=Unit
|
||||
else
|
||||
echo "No test runner found, skipping"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue