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: