Skip to content

Commit

Permalink
Laravel 12 support (#42)
Browse files Browse the repository at this point in the history
Co-authored-by: Duncan McClean <[email protected]>
  • Loading branch information
andjsch and duncanmcclean authored Mar 4, 2025
1 parent 12d2369 commit 24f04b2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 13 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,14 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
php: [8.2, 8.3]
laravel: [10.*, 11.*]
statamic: [5.*]
dependency-version: [prefer-stable]
php: [8.2, 8.3, 8.4]
laravel: [10.*, 11.*, 12.*]
stability: [prefer-lowest, prefer-stable]
exclude:
- php: 8.4
laravel: 10.*

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

steps:
- name: Checkout code
Expand All @@ -48,8 +50,8 @@ jobs:
- name: Install dependencies
run: |
composer require "statamic/cms:${{ matrix.statamic }}" "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
.DS_Store
composer.lock
.php-cs-fixer.cache
build/report.junit.xml
.phpunit.cache
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
}
],
"require": {
"php": "^8.1",
"php": "^8.2",
"meilisearch/meilisearch-php": "^1.0",
"guzzlehttp/guzzle": "^7.3",
"http-interop/http-factory-guzzle": "^1.0",
"illuminate/support": "^10.0 || ^11.0",
"illuminate/support": "^10.0 || ^11.0 || ^12.0",
"statamic/cms": "^5.0"
},
"require-dev": {
"laravel/pint": "^1.17",
"orchestra/testbench": "^8.14 || ^9.0",
"phpunit/phpunit": "^10.0"
"laravel/pint": "^1.21",
"orchestra/testbench": "^8.14 || ^9.0 || ^10.0",
"phpunit/phpunit": "^10.0 || ^11.5.10"
},
"autoload": {
"psr-4": {
Expand Down
1 change: 1 addition & 0 deletions tests/__fixtures__/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
!.gitignore

0 comments on commit 24f04b2

Please sign in to comment.