Skip to content

Commit 657fd67

Browse files
authored
Add support for Laravel 11 (#12)
* Add support for Laravel 11
1 parent 996b90a commit 657fd67

File tree

6 files changed

+40
-37
lines changed

6 files changed

+40
-37
lines changed

.github/workflows/coverage.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/cache@v4
2222
with:
2323
path: ~/.composer/cache/files
24-
key: dependencies-php-8.3-illuminate-10.*-composer-${{ hashFiles('composer.json') }}
24+
key: dependencies-php-8.3-illuminate-11.*-composer-${{ hashFiles('composer.json') }}
2525

2626
- name: Setup PHP
2727
uses: shivammathur/setup-php@v2

.github/workflows/tests.yml

+7-15
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,17 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
php: [8.0, 8.1, 8.2, 8.3]
20-
illuminate: [8.*, ^9.0, ^10.0]
21-
stability: [prefer-lowest, prefer-stable]
19+
php: [ 8.1, 8.2, 8.3 ]
20+
illuminate: [ ^10.0, ^11.0 ]
21+
stability: [ prefer-lowest, prefer-stable ]
2222
include:
23-
- illuminate: 8.*
24-
testbench: ~6.22
25-
- illuminate: ^9.0
26-
testbench: 7.*
2723
- illuminate: ^10.0
2824
testbench: 8.*
25+
- illuminate: ^11.0
26+
testbench: 9.*
2927
exclude:
3028
- php: 8.1
31-
illuminate: 7.*
32-
- php: 8.1
33-
illuminate: 6.*
34-
- php: 8.0
35-
illuminate: ^10.0
36-
- php: 8.3
37-
illuminate: 8.*
29+
illuminate: ^11.0
3830

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

@@ -62,4 +54,4 @@ jobs:
6254
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
6355
6456
- name: Execute tests
65-
run: vendor/bin/phpunit --verbose
57+
run: vendor/bin/phpunit

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ vendor
44
composer.phar
55
clover.json
66
clover.xml
7-
.phpunit.result.cache
7+
.phpunit.cache

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

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

5+
### Added
6+
- Added support for Laravel 11
7+
8+
### Changed
9+
- Upgraded to PHPUnit 10
10+
11+
### Removed
12+
- Removed support for PHP 8.0
13+
- Removed support for Laravel 8
14+
- Removed support for Laravel 9
15+
516
## [v1.6.0 (2023-11-29)](https://github.com/markwalet/laravel-packagist/compare/v1.5.0...v1.6.0)
617

718
### Added

composer.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
}
1313
],
1414
"require": {
15-
"php": "8.*",
15+
"php": "^8.1",
1616
"ext-json": "*",
17-
"laravel/framework": "8.*|^9.0|^10.0",
17+
"laravel/framework": "^10.0|^11.0",
1818
"phpoption/phpoption": ">=1.8",
1919
"spatie/packagist-api": "^2.0"
2020
},
2121
"require-dev": {
22-
"phpunit/phpunit": "~9.3",
23-
"orchestra/testbench": "~6.22|7.*|8.*"
22+
"phpunit/phpunit": "^10.5",
23+
"orchestra/testbench": "8.*|9.*"
2424
},
2525
"autoload": {
2626
"psr-4": {

phpunit.xml

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
33
bootstrap="vendor/autoload.php"
44
backupGlobals="false"
5-
backupStaticAttributes="false"
65
colors="true"
7-
verbose="true"
86
processIsolation="false"
97
stopOnFailure="false"
10-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
11-
<coverage includeUncoveredFiles="true" processUncoveredFiles="true">
12-
<include>
13-
<directory suffix=".php">./src</directory>
14-
</include>
15-
<exclude>
16-
<directory suffix=".php">./src/Exceptions/*</directory>
17-
</exclude>
18-
</coverage>
19-
<testsuites>
20-
<testsuite name="Laravel Packagist Test Suite">
21-
<directory suffix="Test.php">./tests/</directory>
22-
</testsuite>
23-
</testsuites>
8+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
9+
cacheDirectory=".phpunit.cache"
10+
backupStaticProperties="false">
11+
<testsuites>
12+
<testsuite name="Laravel Packagist Test Suite">
13+
<directory suffix="Test.php">./tests/</directory>
14+
</testsuite>
15+
</testsuites>
16+
<source>
17+
<include>
18+
<directory suffix=".php">./src</directory>
19+
</include>
20+
<exclude>
21+
<directory suffix=".php">./src/Exceptions/*</directory>
22+
</exclude>
23+
</source>
2424
</phpunit>

0 commit comments

Comments
 (0)