Skip to content

Commit

Permalink
ci: reduce supported versions
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Mar 4, 2024
1 parent b538ef0 commit 60cdfdf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,15 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1, '8.2']
laravel: ['8.*', '9.*', '10.*', '11.*']
php: [8.1, 8.2]
laravel: ['10.*', '11.*']
stability: [prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 8.*
testbench: 6.*
- laravel: 9.*
testbench: 7.x-dev
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8.0
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 8.1

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"php": "^8.0",
"guzzlehttp/guzzle": "^6.0|^7.2",
"illuminate/contracts": "^8.0|^9.0|^10.0|^11.0",
"illuminate/contracts": "^10.0|^11.0",
"spatie/ignition": "^1.3",
"spatie/laravel-package-tools": "^1.1"
},
Expand Down
6 changes: 1 addition & 5 deletions tests/Features/Commands/UpdateTsconfigCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,10 @@

it('asks for confirmation before running in production', function () {
sandbox(function () {
$isLaravel10OrGreater = version_compare(app()->version(), '10.0.0', '>=');

set_env('production');
this()->artisan('vite:tsconfig')
->expectsConfirmation(
question: $isLaravel10OrGreater
? 'Are you sure you want to run this command?'
: 'Do you really wish to run this command?',
question: 'Do you really wish to run this command?',
answer: 'yes'
)
->assertExitCode(0);
Expand Down

0 comments on commit 60cdfdf

Please sign in to comment.