|
|
@ -38,16 +38,18 @@ jobs:
|
|
|
|
- name: Install Dependencies
|
|
|
|
- name: Install Dependencies
|
|
|
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
|
|
|
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
|
|
|
|
|
|
|
|
|
|
|
|
- name: Generate key
|
|
|
|
|
|
|
|
run: php artisan key:generate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Directory Permissions
|
|
|
|
- name: Directory Permissions
|
|
|
|
run: chmod -R 777 storage bootstrap/cache
|
|
|
|
run: chmod -R 777 storage bootstrap/cache
|
|
|
|
|
|
|
|
- name: Generate key
|
|
|
|
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
MYSQL_DATABASE: test_db
|
|
|
|
MYSQL_DATABASE: test_db
|
|
|
|
DB_USERNAME: user
|
|
|
|
DB_USERNAME: user
|
|
|
|
DB_PASSWORD: secret
|
|
|
|
DB_PASSWORD: secret
|
|
|
|
DB_PORT: ${{ job.services.mysql.ports[3306] }}
|
|
|
|
DB_PORT: ${{ job.services.mysql.ports[3306] }}
|
|
|
|
run: vendor/bin/phpunit
|
|
|
|
run: php artisan key:generate
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Database seeder test
|
|
|
|
|
|
|
|
run: php artisan migrate:fresh --seed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Developer test
|
|
|
|
|
|
|
|
- run: php artisan test
|
|
|
|