Skip to content

Commit 24f04b2

Browse files
Laravel 12 support (#42)
Co-authored-by: Duncan McClean <duncan@duncanmcclean.com>
1 parent 12d2369 commit 24f04b2

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

.github/workflows/run-tests.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
os: [ubuntu-latest]
26-
php: [8.2, 8.3]
27-
laravel: [10.*, 11.*]
28-
statamic: [5.*]
29-
dependency-version: [prefer-stable]
26+
php: [8.2, 8.3, 8.4]
27+
laravel: [10.*, 11.*, 12.*]
28+
stability: [prefer-lowest, prefer-stable]
29+
exclude:
30+
- php: 8.4
31+
laravel: 10.*
3032

31-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - S${{ matrix.statamic }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
33+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3234

3335
steps:
3436
- name: Checkout code
@@ -48,8 +50,8 @@ jobs:
4850
4951
- name: Install dependencies
5052
run: |
51-
composer require "statamic/cms:${{ matrix.statamic }}" "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
52-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
53+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
54+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5355
5456
- name: Execute tests
5557
run: vendor/bin/phpunit

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
.DS_Store
44
composer.lock
55
.php-cs-fixer.cache
6-
build/report.junit.xml
6+
.phpunit.cache

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@
2323
}
2424
],
2525
"require": {
26-
"php": "^8.1",
26+
"php": "^8.2",
2727
"meilisearch/meilisearch-php": "^1.0",
2828
"guzzlehttp/guzzle": "^7.3",
2929
"http-interop/http-factory-guzzle": "^1.0",
30-
"illuminate/support": "^10.0 || ^11.0",
30+
"illuminate/support": "^10.0 || ^11.0 || ^12.0",
3131
"statamic/cms": "^5.0"
3232
},
3333
"require-dev": {
34-
"laravel/pint": "^1.17",
35-
"orchestra/testbench": "^8.14 || ^9.0",
36-
"phpunit/phpunit": "^10.0"
34+
"laravel/pint": "^1.21",
35+
"orchestra/testbench": "^8.14 || ^9.0 || ^10.0",
36+
"phpunit/phpunit": "^10.0 || ^11.5.10"
3737
},
3838
"autoload": {
3939
"psr-4": {

tests/__fixtures__/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!.gitignore

0 commit comments

Comments
 (0)