Skip to content

Commit

Permalink
Laravel 11 Support (#36)
Browse files Browse the repository at this point in the history
# Maintenance
- Dependencies & tests
- Laravel 11 support
  • Loading branch information
michael-rubel authored Mar 13, 2024
1 parent 1a56e0f commit a61d87c
Show file tree
Hide file tree
Showing 11 changed files with 4,655 additions and 5,687 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/bc-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ jobs:
- name: "Install PHP"
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
- name: "Install dependencies"
run: "composer install"
- name: "Install BC check"
run: "composer require --dev roave/backward-compatibility-check"
- name: "Check for BC breaks"
run: "vendor/bin/roave-backward-compatibility-check"
2 changes: 1 addition & 1 deletion .github/workflows/infection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, fileinfo, sodium
coverage: pcov

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl, gd
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
coverage: none

- name: Cache composer dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
php-version: 8.3
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, intl
coverage: none

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,18 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.0, 8.1, 8.2, 8.3]
laravel: [10.*, 9.*]
os: [ubuntu-latest]
php: [8.1, 8.2, 8.3]
laravel: ['10.*', '11.*']
stability: [prefer-lowest, prefer-stable]
exclude:
include:
- laravel: 10.*
php: 8.0
testbench: 8.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1

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

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ testbench.yaml
vendor
node_modules
.php-cs-fixer.cache
.phpunit.cache
24 changes: 11 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,20 @@
}
],
"require": {
"php": "^8.0",
"php": "^8.1",
"ext-intl": "*",
"illuminate/contracts": "^9.7|^10.0",
"michael-rubel/laravel-enhanced-container": "^10.0|^11.0",
"spatie/laravel-package-tools": "^1.12"
"illuminate/contracts": "^10.0|^11.0",
"michael-rubel/laravel-enhanced-container": "^12.0",
"spatie/laravel-package-tools": "^1.16"
},
"require-dev": {
"brianium/paratest": "^6.3|^7.0",
"infection/infection": "^0.26.19",
"laravel/pint": "^1.1",
"mockery/mockery": "^1.4.4",
"nunomaduro/collision": "^6.0",
"nunomaduro/larastan": "^2.2",
"orchestra/testbench": "^7.0|^8.0",
"phpunit/phpunit": "^9.5.4",
"roave/backward-compatibility-check": "^7.0|^8.0"
"brianium/paratest": "^6.3|^7.4",
"infection/infection": "^0.27.3",
"laravel/pint": "^1.0",
"nunomaduro/collision": "^6.0|^7.0|^8.0",
"larastan/larastan": "^2.0",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^9.5.4|^10.5"
},
"autoload": {
"psr-4": {
Expand Down
Loading

0 comments on commit a61d87c

Please sign in to comment.