actions(tests): use 'php artisan' for running tests

This commit is contained in:
Matthew Penner 2021-07-24 15:04:06 -06:00
parent 31847a8566
commit 544d1f5746

View File

@ -55,13 +55,13 @@ jobs:
run: vendor/bin/php-cs-fixer fix --dry-run --diff --diff-format=udiff --config .php-cs-fixer.dist.php
continue-on-error: true
- name: Execute Unit Tests
run: vendor/bin/phpunit --bootstrap bootstrap/app.php tests/Unit
run: php artisan tests/Unit
if: ${{ always() }}
env:
DB_CONNECTION: testing
TESTING_DB_HOST: UNIT_NO_DB
- name: Execute Integration Tests
run: vendor/bin/phpunit tests/Integration
run: php artisan tests/Integration
env:
TESTING_DB_PORT: ${{ job.services.database.ports[3306] }}
TESTING_DB_USERNAME: root