1
0
Fork 0

fixed test

main
A1Gard 1 year ago
parent 27cadf29f8
commit 630807ebad

@ -11,9 +11,9 @@ LOG_LEVEL=debug
DB_CONNECTION=mysql DB_CONNECTION=mysql
DB_HOST=127.0.0.1 DB_HOST=127.0.0.1
DB_PORT=3306 DB_PORT=3306
DB_DATABASE=laravel DB_DATABASE=test_db
DB_USERNAME=root DB_USERNAME=user
DB_PASSWORD= DB_PASSWORD=secret
BROADCAST_DRIVER=log BROADCAST_DRIVER=log
CACHE_DRIVER=file CACHE_DRIVER=file

@ -32,7 +32,7 @@ jobs:
sudo apt-get install -y mysql-client sudo apt-get install -y mysql-client
mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -uuser -psecret -e "SHOW DATABASES" mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -uuser -psecret -e "SHOW DATABASES"
- name: Copy .env - name: Copy .env
run: php -r "file_exists('.env') || copy('.env.github', '.env');" run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- 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
@ -40,16 +40,11 @@ jobs:
- name: Directory Permissions - name: Directory Permissions
run: chmod -R 777 storage bootstrap/cache run: chmod -R 777 storage bootstrap/cache
- name: Execute tests (Unit and Feature tests) via PHPUnit - name: Key generate
env:
MYSQL_DATABASE: test_db
DB_USERNAME: user
DB_PASSWORD: secret
DB_PORT: ${{ job.services.mysql.ports[3306] }}
run: php artisan key:generate run: php artisan key:generate
- name: Database seeder test - name: Database seeder test
run: php artisan migrate:fresh --seed run: php artisan migrate:fresh --seed
- name : Developer test - name : Developer test
run: php artisan tes run: php artisan tes

Loading…
Cancel
Save