|
|
|
@ -31,16 +31,16 @@ jobs:
|
|
|
|
|
mysql --version
|
|
|
|
|
sudo apt-get install -y mysql-client
|
|
|
|
|
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -uuser -psecret -e "SHOW DATABASES"
|
|
|
|
|
|
|
|
|
|
- name: Copy .env
|
|
|
|
|
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
|
|
|
|
|
run: php -r "file_exists('.env') || copy('.env.github', '.env');"
|
|
|
|
|
|
|
|
|
|
- name: Install Dependencies
|
|
|
|
|
run: composer install -q --no-ansi --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist
|
|
|
|
|
|
|
|
|
|
- name: Directory Permissions
|
|
|
|
|
run: chmod -R 777 storage bootstrap/cache
|
|
|
|
|
- name: Generate key
|
|
|
|
|
|
|
|
|
|
- name: Execute tests (Unit and Feature tests) via PHPUnit
|
|
|
|
|
env:
|
|
|
|
|
MYSQL_DATABASE: test_db
|
|
|
|
|
DB_USERNAME: user
|
|
|
|
@ -52,4 +52,4 @@ jobs:
|
|
|
|
|
run: php artisan migrate:fresh --seed
|
|
|
|
|
|
|
|
|
|
- name : Developer test
|
|
|
|
|
- run: php artisan test
|
|
|
|
|
run: php artisan tes
|
|
|
|
|