From 6d7f5e4e035214f76510fb21a77c59dda8a2333b Mon Sep 17 00:00:00 2001 From: A1Gard Date: Fri, 7 Jul 2023 06:28:25 +0330 Subject: [PATCH] Update laravel.yml test via mysql --- .github/workflows/laravel.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 746f9a7..2cf818f 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -38,16 +38,18 @@ jobs: - name: Install Dependencies 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 run: chmod -R 777 storage bootstrap/cache - - - name: Execute tests (Unit and Feature tests) via PHPUnit + - name: Generate key env: MYSQL_DATABASE: test_db DB_USERNAME: user DB_PASSWORD: secret - DB_PORT: ${{ job.services.mysql.ports[3306] }} - run: vendor/bin/phpunit + DB_PORT: ${{ job.services.mysql.ports[3306] }} + run: php artisan key:generate + + - name: Database seeder test + run: php artisan migrate:fresh --seed + + - name: Developer test + - run: php artisan test