Skip to content

Commit d4a8a06

Browse files
committed
feat: Laravel 11 support
1 parent d442d03 commit d4a8a06

File tree

4 files changed

+59
-32
lines changed

4 files changed

+59
-32
lines changed

.github/workflows/test.yml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [ 8.0, 8.1, 8.2 ]
19-
laravel: [ '^9.0', '^10.0' ]
18+
php: [ 8.0, 8.1, 8.2, 8.3 ]
19+
laravel: [ '^9.0', '^10.0', '^11.0' ]
2020
dependency-version: [prefer-lowest, prefer-stable]
2121
exclude:
22-
- php: 8.0
23-
laravel: '^10.0'
22+
- laravel: '^9.0'
23+
php: 8.3
24+
- laravel: '^10.0'
25+
php: 8.0
26+
- laravel: '^11.0'
27+
php: 8.0
28+
- laravel: '^11.0'
29+
php: 8.1
2430

2531
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2632

@@ -29,10 +35,10 @@ jobs:
2935
run: sudo apt-get update --fix-missing
3036

3137
- name: Checkout code
32-
uses: actions/checkout@v3
38+
uses: actions/checkout@v4
3339

3440
- name: Cache dependencies
35-
uses: actions/cache@v3
41+
uses: actions/cache@v4
3642
with:
3743
path: ~/.composer/cache/files
3844
key: laravel-${{ matrix.laravel }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
],
1616
"require": {
1717
"php": "^8.0",
18-
"illuminate/support": "^9.0 || ^10.0",
19-
"illuminate/http": "^9.0 || ^10.0"
18+
"illuminate/support": "^9.0 || ^10.0 || ^11.0",
19+
"illuminate/http": "^9.0 || ^10.0 || ^11.0"
2020
},
2121
"require-dev": {
22-
"orchestra/testbench": "^7.3 || ^8.0",
23-
"phpunit/phpunit": "^9.5"
22+
"orchestra/testbench": "^7.3 || ^8.0 || ^9.0",
23+
"phpunit/phpunit": "^9.5 || ^10.5"
2424
},
2525
"autoload": {
2626
"psr-4": {

phpunit.xml.dist

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4-
bootstrap="vendor/autoload.php"
5-
colors="true"
6-
verbose="true">
7-
<coverage>
8-
<include>
9-
<directory suffix=".php">src/</directory>
10-
</include>
11-
<report>
12-
<clover outputFile="build/logs/clover.xml"/>
13-
</report>
14-
</coverage>
15-
<testsuites>
16-
<testsuite name="Laravel Upload Handler Test Suite">
17-
<directory>tests</directory>
18-
</testsuite>
19-
</testsuites>
20-
<logging>
21-
<junit outputFile="build/report.junit.xml"/>
22-
<text outputFile="build/coverage.txt"/>
23-
</logging>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" colors="true" cacheDirectory=".phpunit.cache">
3+
<coverage>
4+
<report>
5+
<clover outputFile="build/logs/clover.xml"/>
6+
</report>
7+
</coverage>
8+
<testsuites>
9+
<testsuite name="Laravel Upload Handler Test Suite">
10+
<directory>tests</directory>
11+
</testsuite>
12+
</testsuites>
13+
<logging>
14+
<junit outputFile="build/report.junit.xml"/>
15+
</logging>
16+
<source>
17+
<include>
18+
<directory suffix=".php">src/</directory>
19+
</include>
20+
</source>
2421
</phpunit>

phpunit.xml.dist.bak

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
verbose="true">
7+
<coverage>
8+
<include>
9+
<directory suffix=".php">src/</directory>
10+
</include>
11+
<report>
12+
<clover outputFile="build/logs/clover.xml"/>
13+
</report>
14+
</coverage>
15+
<testsuites>
16+
<testsuite name="Laravel Upload Handler Test Suite">
17+
<directory>tests</directory>
18+
</testsuite>
19+
</testsuites>
20+
<logging>
21+
<junit outputFile="build/report.junit.xml"/>
22+
<text outputFile="build/coverage.txt"/>
23+
</logging>
24+
</phpunit>

0 commit comments

Comments
 (0)