From be6545a366e201e0ed86da151896cdfc0738f80a Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 9 Nov 2023 15:55:04 -0800 Subject: [PATCH] Merge Laravel setup steps --- .github/workflows/tests.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f232bf6fd7..611c1171b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -57,27 +57,17 @@ jobs: - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Generate key - run: php artisan key:generate - - - name: Migrate Database + - name: Setup Laravel env: DB_CONNECTION: mysql DB_DATABASE: snipeit DB_PORT: ${{ job.services.mysql.ports[3306] }} DB_USERNAME: root - run: php artisan migrate --force - - - name: Install Passport - env: - DB_CONNECTION: mysql - DB_DATABASE: snipeit - DB_PORT: ${{ job.services.mysql.ports[3306] }} - DB_USERNAME: root - run: php artisan passport:install - - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache + run: | + php artisan key:generate + php artisan migrate --force + php artisan passport:install + chmod -R 777 storage bootstrap/cache - name: Execute tests (Unit and Feature tests) via PHPUnit env: