Skip to content

Commit 3b14c5b

Browse files
author
Oussama Sid
committed
Add Laravel 13.x and PHP 8.4 support
- illuminate/contracts: add ^13.0 - orchestra/testbench: add ^11.0 - nunomaduro/collision: add ^9.0 - CI: add PHP 8.4 and Laravel 13.* (testbench 11.*), carbon ">=3.8.4" on all rows - CI: drop prefer-lowest, upgrade actions/checkout to v6, add --no-coverage - phpunit.xml.dist: remove deprecated PHPUnit 10+ attributes
1 parent 79a247d commit 3b14c5b

3 files changed

Lines changed: 24 additions & 16 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,27 +16,37 @@ jobs:
1616
fail-fast: true
1717
matrix:
1818
os: [ubuntu-latest, windows-latest]
19-
php: [8.1, 8.2, 8.3]
20-
laravel: ['10.*', '11.*', '12.*']
21-
stability: [prefer-lowest, prefer-stable]
19+
php: [8.1, 8.2, 8.3, 8.4]
20+
laravel: ['10.*', '11.*', '12.*', '13.*']
21+
stability: [prefer-stable]
2222
include:
2323
- laravel: 10.*
2424
testbench: 8.*
25+
carbon: ">=3.8.4"
2526
- laravel: 11.*
2627
testbench: ^9.0
28+
carbon: ">=3.8.4"
2729
- laravel: 12.*
2830
testbench: ^10.0
31+
carbon: ">=3.8.4"
32+
- laravel: 13.*
33+
testbench: ^11.0
34+
carbon: ">=3.8.4"
2935
exclude:
3036
- laravel: 11.*
3137
php: 8.1
3238
- laravel: 12.*
3339
php: 8.1
40+
- laravel: 13.*
41+
php: 8.1
42+
- laravel: 13.*
43+
php: 8.2
3444

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

3747
steps:
3848
- name: Checkout code
39-
uses: actions/checkout@v5.0.0
49+
uses: actions/checkout@v6
4050

4151
- name: Setup PHP
4252
uses: shivammathur/setup-php@v2
@@ -52,8 +62,11 @@ jobs:
5262
5363
- name: Install dependencies
5464
run: |
55-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
65+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
5666
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5767
68+
- name: List Installed Dependencies
69+
run: composer show -D
70+
5871
- name: Execute tests
59-
run: vendor/bin/pest
72+
run: vendor/bin/pest --ci --no-coverage

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@
1818
"require": {
1919
"php": "^8.1",
2020
"coderflexx/laravel-presenter": "^2.0",
21-
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0",
21+
"illuminate/contracts": "^9.0|^10.0|^11.0|^12.0|^13.0",
2222
"jaybizzle/crawler-detect": "^1.2",
2323
"spatie/laravel-package-tools": "^1.9.2"
2424
},
2525
"require-dev": {
2626
"laravel/pint": "^1.0",
27-
"nunomaduro/collision": "^7.0|^8.0",
27+
"nunomaduro/collision": "^7.0|^8.0|^9.0",
2828
"nunomaduro/larastan": "^2.0.1|^3.0",
29-
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0",
29+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0",
3030
"phpstan/extension-installer": "^1.1",
3131
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
3232
"phpstan/phpstan-phpunit": "^1.0|^2.0",

phpunit.xml.dist

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,15 @@
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
55
backupGlobals="false"
6-
backupStaticAttributes="false"
76
bootstrap="vendor/autoload.php"
87
colors="true"
9-
convertErrorsToExceptions="true"
10-
convertNoticesToExceptions="true"
11-
convertWarningsToExceptions="true"
128
processIsolation="false"
13-
stopOnFailure="false"
149
executionOrder="random"
1510
failOnWarning="true"
1611
failOnRisky="true"
1712
failOnEmptyTestSuite="true"
18-
beStrictAboutOutputDuringTests="true"
19-
verbose="true"
13+
cacheDirectory=".phpunit.cache"
14+
backupStaticProperties="false"
2015
>
2116
<testsuites>
2217
<testsuite name="Coderflex Test Suite">

0 commit comments

Comments
 (0)