Skip to content

Commit 48e537b

Browse files
Laravel 12.x Compatibility (#389)
* Bump dependencies for Laravel 12 * Update GitHub Actions for Laravel 12
1 parent d6cf66f commit 48e537b

File tree

2 files changed

+22
-7
lines changed

2 files changed

+22
-7
lines changed

.github/workflows/tests.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- master
7-
- '*.x'
7+
- *.x
88
pull_request:
99
schedule:
1010
- cron: '0 0 * * *'
@@ -13,21 +13,25 @@ jobs:
1313
linux_tests:
1414
runs-on: ubuntu-22.04
1515

16+
1617
strategy:
1718
fail-fast: true
1819
matrix:
1920
php: [8.2, 8.3, 8.4]
20-
laravel: [10, 11]
21+
laravel: [10, 11, '12']
2122
exclude:
2223
- php: 8.4
2324
laravel: 10
2425

26+
2527
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
2628

29+
2730
steps:
2831
- name: Checkout code
2932
uses: actions/checkout@v4
3033

34+
3135
- name: Setup PHP
3236
uses: shivammathur/setup-php@v2
3337
with:
@@ -36,36 +40,43 @@ jobs:
3640
tools: composer:v2
3741
coverage: none
3842

43+
3944
- name: Install dependencies
4045
run: |
4146
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=^${{ matrix.laravel }}"
4247
48+
4349
- name: Execute tests
4450
run: vendor/bin/phpunit --display-deprecations --fail-on-deprecation
4551

4652
windows_tests:
4753
runs-on: windows-latest
4854

55+
4956
strategy:
5057
fail-fast: true
5158
matrix:
5259
php: [8.2, 8.3, 8.4]
53-
laravel: [10, 11]
60+
laravel: [10, 11, '12']
5461
exclude:
5562
- php: 8.4
5663
laravel: 10
5764

65+
5866
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - Windows
5967

68+
6069
steps:
6170
- name: Set git to use LF
6271
run: |
6372
git config --global core.autocrlf false
6473
git config --global core.eol lf
6574
75+
6676
- name: Checkout code
6777
uses: actions/checkout@v4
6878

79+
6980
- name: Setup PHP
7081
uses: shivammathur/setup-php@v2
7182
with:
@@ -75,9 +86,11 @@ jobs:
7586
tools: composer:v2
7687
coverage: none
7788

89+
7890
- name: Install dependencies
7991
run: |
8092
composer update --prefer-dist --no-interaction --no-progress --with="illuminate/support=~${{ matrix.laravel }}"
8193
94+
8295
- name: Execute tests
8396
run: vendor/bin/phpunit --display-deprecations --fail-on-deprecation

composer.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
{
22
"name": "laravel/installer",
33
"description": "Laravel application installer.",
4-
"keywords": ["laravel"],
4+
"keywords": [
5+
"laravel"
6+
],
57
"license": "MIT",
68
"authors": [
79
{
@@ -11,15 +13,15 @@
1113
],
1214
"require": {
1315
"php": "^8.2",
14-
"illuminate/filesystem": "^10.20|^11.0",
15-
"illuminate/support": "^10.20|^11.0",
16+
"illuminate/filesystem": "^10.20|^11.0|^12.0",
17+
"illuminate/support": "^10.20|^11.0|^12.0",
1618
"laravel/prompts": "^0.1.18|^0.2.0|^0.3.0",
1719
"symfony/console": "^6.2|^7.0",
1820
"symfony/process": "^6.2|^7.0",
1921
"symfony/polyfill-mbstring": "^1.31"
2022
},
2123
"require-dev": {
22-
"phpstan/phpstan": "^1.10",
24+
"phpstan/phpstan": "^1.10|^2.1",
2325
"phpunit/phpunit": "^10.4"
2426
},
2527
"bin": [

0 commit comments

Comments
 (0)