Skip to content

Commit

Permalink
Laravel 12 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
erikn69 authored and freekmurze committed Feb 14, 2025
1 parent 33e48ef commit 9b1c6f6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- name: Dependabot metadata
id: metadata
uses: dependabot/fetch-metadata@v2.3.0
uses: dependabot/fetch-metadata@v2
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/php-cs-fixer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@2.4
uses: aglipanci/laravel-pint-action@v2

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@ jobs:
matrix:
os: [ubuntu-latest]
php: [8.4, 8.3, 8.2]
laravel: [11.*, 10.*]
laravel: [12.*, 11.*, 10.*]
stability: [prefer-lowest, prefer-stable]
carbon: [^2.63]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 11.*
testbench: 9.*
- laravel: 12.*
testbench: 10.*

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}

Expand All @@ -52,14 +53,12 @@ jobs:
- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.os == 'windows-latest' && '^^^' || '' }}${{ matrix.carbon }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer remove "larastan/larastan" --dev --no-interaction --no-update
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
- name: List Installed Dependencies
run: composer show -D

- name: Execute tests
run: vendor/bin/pest --ci



18 changes: 9 additions & 9 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@
"require": {
"php": "^8.2",
"ext-zip": "^1.14.0",
"illuminate/console": "^10.10.0|^11.0",
"illuminate/contracts": "^10.10.0|^11.0",
"illuminate/events": "^10.10.0|^11.0",
"illuminate/filesystem": "^10.10.0|^11.0",
"illuminate/notifications": "^10.10.0|^11.0",
"illuminate/support": "^10.10.0|^11.0",
"illuminate/console": "^10.10.0|^11.0|^12.0",
"illuminate/contracts": "^10.10.0|^11.0|^12.0",
"illuminate/events": "^10.10.0|^11.0|^12.0",
"illuminate/filesystem": "^10.10.0|^11.0|^12.0",
"illuminate/notifications": "^10.10.0|^11.0|^12.0",
"illuminate/support": "^10.10.0|^11.0|^12.0",
"league/flysystem": "^3.0",
"spatie/db-dumper": "^3.7",
"spatie/laravel-package-tools": "^1.6.2",
Expand All @@ -37,12 +37,12 @@
"require-dev": {
"composer-runtime-api": "^2.0",
"ext-pcntl": "*",
"larastan/larastan": "^2.7.0",
"larastan/larastan": "^2.7.0|^3.0",
"laravel/slack-notification-channel": "^2.5|^3.0",
"league/flysystem-aws-s3-v3": "^2.0|^3.0",
"mockery/mockery": "^1.4",
"orchestra/testbench": "^8.0|^9.0",
"pestphp/pest": "^1.20|^2.0",
"orchestra/testbench": "^8.0|^9.0|^10.0",
"pestphp/pest": "^1.20|^2.0|^3.0",
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan-deprecation-rules": "^1.0",
"phpstan/phpstan-phpunit": "^1.1",
Expand Down

0 comments on commit 9b1c6f6

Please sign in to comment.