issue #376 - Install phpunit dependencies before runs the tests

This commit is contained in:
smoqadam 2020-12-19 20:18:12 +08:00
parent b7d1d9c9a9
commit 81964ae791
3 changed files with 6 additions and 3 deletions

View File

@ -44,6 +44,7 @@ jobs:
- name: Install Composer dependencies
run: |
composer install --no-progress --prefer-dist --optimize-autoloader
php bin/phpunit install
- name: Run Migration
run: |
composer require symfony/orm-pack
@ -52,4 +53,4 @@ jobs:
env:
DATABASE_URL: mysql://root:symfony@127.0.0.1:${{ job.services.mysql.ports['3306'] }}/symfony
- name: Run Tests
run: php bin/phpunit --coverage-text
run: php bin/phpunit --coverage-text

View File

@ -42,6 +42,7 @@ jobs:
- name: Install Composer dependencies
run: |
composer install --no-progress --prefer-dist --optimize-autoloader
php bin/phpunit install
- name: Run Migration
run: |
composer require symfony/orm-pack
@ -50,4 +51,4 @@ jobs:
env:
DATABASE_URL: postgres://postgres:postgres@127.0.0.1:${{ job.services.postgres.ports[5432] }}/postgres?charset=UTF-8
- name: Run Tests
run: php bin/phpunit --coverage-text
run: php bin/phpunit --coverage-text

View File

@ -34,5 +34,6 @@ jobs:
run: |
composer require symfony/orm-pack
composer install --no-progress --prefer-dist --optimize-autoloader
php bin/phpunit install
- name: Run Tests
run: php bin/phpunit --coverage-text
run: php bin/phpunit --coverage-text