Skip to content

Commit

Permalink
Laravel 11.x Compatibility (#370)
Browse files Browse the repository at this point in the history
* Bump dependencies for Laravel 11

* Update GitHub Actions for Laravel 11

* Add Coverage Driver

* Migrate to Pest PHP

* Remove Pest

* Delete Pest.php

* Update formatter CI

---------

Co-authored-by: tzsk <mailtokmahmed@gmail.com>
  • Loading branch information
laravel-shift and tzsk committed Mar 26, 2024
1 parent 776ab1b commit ba29dbb
Show file tree
Hide file tree
Showing 8 changed files with 414 additions and 539 deletions.
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.1"
php-version: "8.2"
coverage: none

- name: Cache composer dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.1"
php-version: "8.2"
coverage: none

- name: Cache composer dependencies
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
name: Tests

on: [push, pull_request]
on:
- push
- pull_request

jobs:
test:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: [8.1]
laravel: [8.*, 9.*, 10.*]
php: [8.1, "8.2"]
laravel: ["8.*", "9.*", "10.*", "11.*"]
dependency-version: [prefer-stable]
include:
- laravel: 10.*
Expand All @@ -19,6 +22,11 @@ jobs:
testbench: 6.*
- laravel: 9.*
testbench: 7.*
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 11.*
php: 8.1

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

Expand All @@ -36,7 +44,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, xdebug
coverage: none

- name: Install dependencies
Expand All @@ -45,4 +53,4 @@ jobs:
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- name: Execute tests
run: vendor/bin/phpunit
run: vendor/bin/phpunit --colors=always
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
build
coverage
docs
phpunit.xml
psalm.xml
vendor
tests/phpunit-cache
15 changes: 9 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@
],
"require": {
"php": "^8.1",
"illuminate/support": "^8.0|^9.0|^10.0",
"illuminate/cache": "^8.0|^9.0|^10.0",
"illuminate/filesystem": "^8.0|^9.0|^10.0"
"illuminate/support": "^8.0|^9.0|^10.0|^11.0",
"illuminate/cache": "^8.0|^9.0|^10.0|^11.0",
"illuminate/filesystem": "^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"laravel/legacy-factories": "^1.0",
"laravel/pint": "^1.4",
"orchestra/testbench": "^6.0|^7.0|^8.0",
"phpunit/phpunit": "^9.3",
"orchestra/testbench": "^6.0|^7.0|^8.0|^9.0",
"phpunit/phpunit": "^9.3|^10.5",
"vimeo/psalm": "^5.0"
},
"autoload": {
Expand All @@ -51,7 +51,10 @@
"format": "vendor/bin/pint"
},
"config": {
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"pestphp/pest-plugin": true
}
},
"extra": {
"laravel": {
Expand Down

0 comments on commit ba29dbb

Please sign in to comment.