Skip to content

Commit

Permalink
Add support for Laravel 11
Browse files Browse the repository at this point in the history
  • Loading branch information
markwalet committed Apr 5, 2024
1 parent 996b90a commit a07a62c
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.composer/cache/files
key: dependencies-php-8.3-illuminate-10.*-composer-${{ hashFiles('composer.json') }}
key: dependencies-php-8.3-illuminate-11.*-composer-${{ hashFiles('composer.json') }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
20 changes: 6 additions & 14 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,17 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2, 8.3]
illuminate: [8.*, ^9.0, ^10.0]
stability: [prefer-lowest, prefer-stable]
php: [ 8.1, 8.2, 8.3 ]
illuminate: [ ^10.0, ^11.0 ]
stability: [ prefer-lowest, prefer-stable ]
include:
- illuminate: 8.*
testbench: ~6.22
- illuminate: ^9.0
testbench: 7.*
- illuminate: ^10.0
testbench: 8.*
- illuminate: ^11.0
testbench: 9.*
exclude:
- php: 8.1
illuminate: 7.*
- php: 8.1
illuminate: 6.*
- php: 8.0
illuminate: ^10.0
- php: 8.3
illuminate: 8.*
illuminate: ^11.0

name: P${{ matrix.php }} - I${{ matrix.illuminate }} - ${{ matrix.stability }}

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ vendor
composer.phar
clover.json
clover.xml
.phpunit.result.cache
.phpunit.cache
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## [Unreleased](https://github.com/markwalet/laravel-packagist/compare/v1.6.0...master)

### Added
- Added support for Laravel 11

### Changed
- Upgraded to PHPUnit 10

### Removed
- Removed support for PHP 8.0
- Removed support for Laravel 8
- Removed support for Laravel 9

## [v1.6.0 (2023-11-29)](https://github.com/markwalet/laravel-packagist/compare/v1.5.0...v1.6.0)

### Added
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
}
],
"require": {
"php": "8.*",
"php": "^8.1",
"ext-json": "*",
"laravel/framework": "8.*|^9.0|^10.0",
"laravel/framework": "^10.0|^11.0",
"phpoption/phpoption": ">=1.8",
"spatie/packagist-api": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "~9.3",
"orchestra/testbench": "~6.22|7.*|8.*"
"phpunit/phpunit": "^10.5",
"orchestra/testbench": "8.*|9.*"
},
"autoload": {
"psr-4": {
Expand Down
32 changes: 16 additions & 16 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
processIsolation="false"
stopOnFailure="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./src/Exceptions/*</directory>
</exclude>
</coverage>
<testsuites>
<testsuite name="Laravel Packagist Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false">
<testsuites>
<testsuite name="Laravel Packagist Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">./src</directory>
</include>
<exclude>
<directory suffix=".php">./src/Exceptions/*</directory>
</exclude>
</source>
</phpunit>

0 comments on commit a07a62c

Please sign in to comment.