diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8e67ca5c..e0311201 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -69,9 +69,7 @@ jobs: restore-keys: ${{ runner.os }}-composer- - name: Prepare environment - run: | - cp .env.ci .env - php artisan key:generate || true + run: cp .env.ci .env - name: Install Composer dependencies run: composer install --no-interaction --prefer-dist --optimize-autoloader @@ -79,12 +77,12 @@ jobs: - name: Install npm dependencies run: npm ci + - name: Generate application key + run: php artisan key:generate + - name: Build assets run: npm run build - - name: Clear Config - run: php artisan config:clear - - name: Run migrations run: php artisan migrate --force env: