Skip to content

Commit

Permalink
Add support for Telescope 5
Browse files Browse the repository at this point in the history
  • Loading branch information
adriaanzon committed Mar 15, 2024
1 parent 49cfef5 commit 7ee52a5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
- uses: ramsey/composer-install@v2
- name: Run PHPStan
run: ./vendor/bin/phpstan --error-format=github
Expand All @@ -25,7 +25,7 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
- uses: ramsey/composer-install@v2
- name: Run PHP CodeSniffer
run: ./vendor/bin/phpcs
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- uses: actions/checkout@v3
- uses: shivammathur/setup-php@v2
with:
php-version: '8.1'
php-version: '8.3'
- uses: ramsey/composer-install@v2
- name: Run PHPUnit tests
run: ./vendor/bin/phpunit
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"license": "MIT",
"require": {
"php": "^8.1",
"laravel/telescope": "^4.7"
"laravel/telescope": "^4.7|^5.0"
},
"require-dev": {
"orchestra/testbench": "^7.1",
Expand Down
5 changes: 5 additions & 0 deletions testbench.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
providers:
- Laravel\Telescope\TelescopeServiceProvider
- AdriaanZon\TelescopeMonitor\TelescopeMonitorServiceProvider
migrations:
- vendor/laravel/telescope/database/migrations
11 changes: 2 additions & 9 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@

namespace Tests;

use AdriaanZon\TelescopeMonitor\TelescopeMonitorServiceProvider;
use Laravel\Telescope\TelescopeServiceProvider;
use Orchestra\Testbench\Concerns\WithWorkbench;

class TestCase extends \Orchestra\Testbench\TestCase
{
protected function getPackageProviders($app)
{
return [
TelescopeServiceProvider::class,
TelescopeMonitorServiceProvider::class,
];
}
use WithWorkbench;
}

0 comments on commit 7ee52a5

Please sign in to comment.