Skip to content

Commit

Permalink
Remove Nova when testing
Browse files Browse the repository at this point in the history
  • Loading branch information
driftingly committed Apr 9, 2024
1 parent 664e946 commit 8764311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ jobs:

- name: Install Composer Dependencies
run: |
composer config "http-basic.nova.laravel.com" "${{ secrets.NOVA_USERNAME }}" "${{ secrets.NOVA_PASSWORD }}"
composer install --no-interaction
composer remove laravel/nova --no-scripts --no-interaction
- name: Install Frontend Dependencies
run: npm install
Expand All @@ -41,7 +40,8 @@ jobs:
run: npm run build

- name: Generate Key
run: php artisan key:generate
run: export APP_ENV=testing && php artisan key:generate
shell: bash

- name: Run PHP Tests
run: php artisan test
run: ./vendor/bin/pest
6 changes: 3 additions & 3 deletions config/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
|
*/

'providers' => ServiceProvider::defaultProviders()->merge([
'providers' => ServiceProvider::defaultProviders()->merge(array_filter([
/*
* Package Service Providers...
*/
Expand All @@ -181,9 +181,9 @@
App\Providers\AuthServiceProvider::class,
// App\Providers\BroadcastServiceProvider::class,
App\Providers\EventServiceProvider::class,
App\Providers\NovaServiceProvider::class,
(env('APP_ENV', 'production') != 'testing' ? App\Providers\NovaServiceProvider::class : null),
App\Providers\RouteServiceProvider::class,
])->toArray(),
]))->toArray(),

/*
|--------------------------------------------------------------------------
Expand Down

0 comments on commit 8764311

Please sign in to comment.