Laravel 13.x Compatibility (#1763)

* Bump dependencies for Laravel 13

* Update GitHub Actions for Laravel 13

* Update workflow to remove cron schedule

Removed cron schedule and adjusted pull request branches.

* Fix syntax, modify Laravel version in run-tests.yml

Updated Laravel version from '13.0' to '13.x' in CI configuration.

* Update test-ci command in composer.json

* Fix test-ci command in composer.json

---------

Co-authored-by: Barry vd. Heuvel <[email protected]>
This commit is contained in:
Laravel Shift
2026-02-21 09:54:37 +01:00
committed by GitHub
co-authored by Barry vd. Heuvel
parent 37dfcf9e14
commit e9b62b6ee0
3 changed files with 102 additions and 94 deletions
+8 -4
View File
@@ -7,22 +7,27 @@ on:
pull_request: pull_request:
branches: branches:
- "*" - "*"
schedule:
- cron: '0 0 * * *'
jobs: jobs:
php-laravel-integration-tests: php-laravel-integration-tests:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
timeout-minutes: 15 timeout-minutes: 15
env: env:
COMPOSER_NO_INTERACTION: 1 COMPOSER_NO_INTERACTION: 1
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
php: [8.5, 8.4, 8.3, 8.2] php: [8.5, 8.4, 8.3, 8.2]
laravel: [11.x, 12.x] laravel: [11.x, 12.x, 13.x]
exclude:
- laravel: 13.x
php: 8.2
name: P${{ matrix.php }} - Laravel${{ matrix.laravel }} name: P${{ matrix.php }} - Laravel${{ matrix.laravel }}
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v6 uses: actions/checkout@v6
@@ -63,7 +68,6 @@ jobs:
ls sample/_ide_helper.php ls sample/_ide_helper.php
ls sample/.phpstorm.meta.php ls sample/.phpstorm.meta.php
- name: Check logs - name: Check logs
run: | run: |
if [ `ls -1q "sample/storage/logs/" | wc -l` -gt 0 ]; then if [ `ls -1q "sample/storage/logs/" | wc -l` -gt 0 ]; then
+8 -4
View File
@@ -7,13 +7,13 @@ on:
pull_request: pull_request:
branches: branches:
- "*" - "*"
schedule:
- cron: '0 0 * * *'
jobs: jobs:
php-tests: php-tests:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
timeout-minutes: 15 timeout-minutes: 15
env: env:
COMPOSER_NO_INTERACTION: 1 COMPOSER_NO_INTERACTION: 1
@@ -22,16 +22,20 @@ jobs:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
php: [8.5, 8.4, 8.3, 8.2] php: [8.5, 8.4, 8.3, 8.2]
laravel: [~11.15, 12.x] laravel: [12.x, 13.x, ~11.15]
stability: [prefer-lowest, prefer-stable] stability: [prefer-lowest, prefer-stable]
include: include:
- os: windows-latest - os: windows-latest
php: 8.3 php: 8.3
laravel: 12.x laravel: 12.x
stability: prefer-stable stability: prefer-stable
exclude:
- laravel: 13.x
php: 8.2
steps: steps:
- name: Set git to use LF - name: Set git to use LF
if: ${{ matrix.os == 'windows-latest' }} if: "${{ matrix.os == 'windows-latest' }}"
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
+9 -9
View File
@@ -25,21 +25,21 @@
"ext-json": "*", "ext-json": "*",
"barryvdh/reflection-docblock": "^2.4", "barryvdh/reflection-docblock": "^2.4",
"composer/class-map-generator": "^1.0", "composer/class-map-generator": "^1.0",
"illuminate/console": "^11.15 || ^12", "illuminate/console": "^11.15 || ^12 || ^13.0",
"illuminate/database": "^11.15 || ^12", "illuminate/database": "^11.15 || ^12 || ^13.0",
"illuminate/filesystem": "^11.15 || ^12", "illuminate/filesystem": "^11.15 || ^12 || ^13.0",
"illuminate/support": "^11.15 || ^12" "illuminate/support": "^11.15 || ^12 || ^13.0"
}, },
"require-dev": { "require-dev": {
"ext-pdo_sqlite": "*", "ext-pdo_sqlite": "*",
"friendsofphp/php-cs-fixer": "^3", "friendsofphp/php-cs-fixer": "^3",
"illuminate/config": "^11.15 || ^12", "illuminate/config": "^11.15 || ^12 || ^13.0",
"illuminate/view": "^11.15 || ^12", "illuminate/view": "^11.15 || ^12 || ^13.0",
"larastan/larastan": "^3.1", "larastan/larastan": "^3.1",
"mockery/mockery": "^1.4", "mockery/mockery": "^1.4",
"orchestra/testbench": "^9.2 || ^10", "orchestra/testbench": "^9.2 || ^10 || ^11.0",
"phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-phpunit": "^2.0",
"phpunit/phpunit": "^10.5 || ^11.5.3", "phpunit/phpunit": "^10.5 || ^11.5.3 || ^12.5.12",
"spatie/phpunit-snapshot-assertions": "^4 || ^5", "spatie/phpunit-snapshot-assertions": "^4 || ^5",
"vlucas/phpdotenv": "^5" "vlucas/phpdotenv": "^5"
}, },
@@ -86,7 +86,7 @@
"php-cs-fixer fix --config=.php-cs-fixer.tests.php" "php-cs-fixer fix --config=.php-cs-fixer.tests.php"
], ],
"test": "phpunit", "test": "phpunit",
"test-ci": "phpunit -d --without-creating-snapshots", "test-ci": "phpunit",
"test-regenerate": "phpunit -d --update-snapshots" "test-regenerate": "phpunit -d --update-snapshots"
} }
} }