Skip to content

Commit 05297ca

Browse files
committed
chore: 🤖 Support Laravel 11 in advance and skip larastan on CI
1 parent 87285dc commit 05297ca

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/ci.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,16 @@ jobs:
2626
matrix:
2727
php: ['8.0', 8.1, 8.2]
2828
lib:
29-
# - { laravel: ^11.0 }
29+
- { laravel: ^11.0 }
3030
- { laravel: ^10.0 }
3131
- { laravel: ^9.0 }
3232
exclude:
3333
- { php: 8.0, lib: { laravel: ^10.0 } }
34-
# - { php: 8.0, lib: { laravel: ^11.0 } }
35-
# - { php: 8.1, lib: { laravel: ^11.0 } }
34+
- { php: 8.0, lib: { laravel: ^11.0 } }
35+
- { php: 8.1, lib: { laravel: ^11.0 } }
36+
include:
37+
- { lib: { laravel: ^9.0 }, phpstan: 1 }
38+
- { lib: { laravel: ^10.0 }, phpstan: 1 }
3639

3740
steps:
3841
- uses: actions/checkout@v3
@@ -43,11 +46,16 @@ jobs:
4346
php-version: ${{ matrix.php }}
4447
coverage: xdebug
4548

49+
- name: Remove impossible dependencies
50+
if: ${{ matrix.phpstan != 1 }}
51+
run: composer remove nunomaduro/larastan --dev --no-update
52+
4653
- name: Adjust Package Versions
4754
run: |
4855
composer require "laravel/framework:${{ matrix.lib.laravel }}" --dev
4956
5057
- name: PHPStan
58+
if: ${{ matrix.phpstan == 1 }}
5159
run: composer phpstan
5260

5361
- run: mkdir -p build/logs

composer.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
"require": {
2525
"php": "^8.0",
2626
"ext-pdo": "*",
27-
"illuminate/support": "^9.0 || ^10.0",
28-
"illuminate/database": "^9.0 || ^10.0",
27+
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
28+
"illuminate/database": "^9.0 || ^10.0 || ^11.0",
2929
"mpyw/unclosure": "^3.0",
3030
"mpyw/laravel-pdo-emulation-control": "^2.0.2"
3131
},

0 commit comments

Comments
 (0)