Skip to content

Commit 8e72318

Browse files
authored
Support Laravel 12 (#17)
1 parent 73f4a31 commit 8e72318

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@ jobs:
2121
matrix:
2222
os: [ubuntu-latest, windows-latest]
2323
php: [8.3, 8.4]
24-
laravel: ["11.*"]
25-
stability: [prefer-lowest, prefer-stable]
26-
include:
27-
- laravel: 11.*
28-
carbon: ^2.63
24+
laravel: [11, 12]
2925

3026
steps:
3127
- uses: actions/checkout@v4
@@ -52,12 +48,11 @@ jobs:
5248
5349
- name: Install dependencies
5450
run: |
55-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
56-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
51+
composer update --prefer-dist --no-interaction --with="illuminate/contracts:^${{ matrix.laravel }}"
5752
5853
- name: List Installed Dependencies
5954
run: composer show -D
6055

6156
- name: Run Testsuite
62-
run: ./vendor/bin/phpunit
57+
run: ./vendor/bin/phpunit ${{ matrix.laravel >= 10 && '--display-deprecations --fail-on-deprecation' || '' }}
6358

composer.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,22 +18,23 @@
1818
],
1919
"require": {
2020
"php": "^8.2",
21-
"illuminate/auth": "^11.0",
22-
"illuminate/console": "^11.0",
23-
"illuminate/encryption": "^11.0",
24-
"illuminate/support": "^11.0",
25-
"illuminate/view": "^11.0",
21+
"illuminate/contracts": "^11.0|^12.0",
22+
"illuminate/auth": "^11.0|^12.0",
23+
"illuminate/console": "^11.0|^12.0",
24+
"illuminate/encryption": "^11.0|^12.0",
25+
"illuminate/support": "^11.0|^12.0",
26+
"illuminate/view": "^11.0|^12.0",
2627
"laravel/socialite": "^5.0",
2728
"socialiteproviders/gitlab": "^4.0",
2829
"socialiteproviders/dropbox": "^4.1"
2930
},
3031
"require-dev": {
3132
"laravel/pint": "^1.14",
3233
"fakerphp/faker": "^1.9.1",
33-
"larastan/larastan": "^2.9",
34+
"larastan/larastan": "^2.9|^3.0",
3435
"mockery/mockery": "^1.4.4",
35-
"phpunit/phpunit": "^10.5",
36-
"orchestra/testbench": "^9.9"
36+
"phpunit/phpunit": "^10.5|^11.5",
37+
"orchestra/testbench": "^9.9|^10.0"
3738
},
3839
"autoload": {
3940
"psr-4": {
@@ -68,5 +69,7 @@
6869
"Identity": "Oneofftech\\Identities\\Facades\\Identity"
6970
}
7071
}
71-
}
72+
},
73+
"minimum-stability": "dev",
74+
"prefer-stable": true
7275
}

0 commit comments

Comments
 (0)