Skip to content

Commit 796dbcd

Browse files
author
Oussama Sid
committed
Add Laravel 11.x, 12.x, 13.x and PHP 8.3/8.4 support
- orchestra/testbench: add ^9.0|^10.0|^11.0 for L11/L12/L13 - pestphp/pest: add ^2.0|^3.7 - pest-plugin-laravel: add ^2.0|^3.0 - nunomaduro/collision: add ^8.0 - nunomaduro/larastan: add ^3.0 - phpstan rules/phpunit: add ^2.0 - phpunit/phpunit: add ^11.0 - CI: expand matrix to L9-L13, PHP 8.1-8.4, carbon ">=3.8.4", actions/checkout v6 - CI: drop prefer-lowest, add --no-coverage - phpunit.xml.dist: remove deprecated PHPUnit 10+ attributes
1 parent d43ffaa commit 796dbcd

3 files changed

Lines changed: 42 additions & 21 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,46 @@ jobs:
1313
fail-fast: true
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
php: [8.1, 8.2]
17-
laravel: [9.*, 10.*]
18-
stability: [prefer-lowest, prefer-stable]
16+
php: [8.1, 8.2, 8.3, 8.4]
17+
laravel: [9.*, 10.*, 11.*, 12.*, 13.*]
18+
stability: [prefer-stable]
1919
include:
2020
- laravel: 9.*
2121
testbench: 7.*
22+
carbon: ">=3.8.4"
2223
- laravel: 10.*
2324
testbench: 8.*
25+
carbon: ">=3.8.4"
26+
- laravel: 11.*
27+
testbench: 9.*
28+
carbon: ">=3.8.4"
29+
- laravel: 12.*
30+
testbench: 10.*
31+
carbon: ">=3.8.4"
32+
- laravel: 13.*
33+
testbench: 11.*
34+
carbon: ">=3.8.4"
2435
exclude:
2536
- laravel: 9.*
2637
php: 8.2
38+
- laravel: 9.*
39+
php: 8.3
40+
- laravel: 9.*
41+
php: 8.4
42+
- laravel: 11.*
43+
php: 8.1
44+
- laravel: 12.*
45+
php: 8.1
46+
- laravel: 13.*
47+
php: 8.1
48+
- laravel: 13.*
49+
php: 8.2
2750

2851
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
2952

3053
steps:
3154
- name: Checkout code
32-
uses: actions/checkout@v5
55+
uses: actions/checkout@v6
3356

3457
- name: Setup PHP
3558
uses: shivammathur/setup-php@v2
@@ -45,8 +68,11 @@ jobs:
4568
4669
- name: Install dependencies
4770
run: |
48-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
71+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
4972
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
5073
74+
- name: List Installed Dependencies
75+
run: composer show -D
76+
5177
- name: Execute tests
52-
run: vendor/bin/pest
78+
run: vendor/bin/pest --ci --no-coverage

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
},
2323
"require-dev": {
2424
"laravel/pint": "^1.0",
25-
"nunomaduro/collision": "^6.0|^7.0",
26-
"nunomaduro/larastan": "^2.0.1",
27-
"orchestra/testbench": "^7.0|^8.0",
28-
"pestphp/pest": "^1.21",
29-
"pestphp/pest-plugin-laravel": "^1.1",
25+
"nunomaduro/collision": "^6.0|^7.0|^8.0",
26+
"nunomaduro/larastan": "^2.0.1|^3.0",
27+
"orchestra/testbench": "^7.0|^8.0|^9.0|^10.0|^11.0",
28+
"pestphp/pest": "^1.21|^2.0|^3.7",
29+
"pestphp/pest-plugin-laravel": "^1.1|^2.0|^3.0",
3030
"phpstan/extension-installer": "^1.1",
31-
"phpstan/phpstan-deprecation-rules": "^1.0",
32-
"phpstan/phpstan-phpunit": "^1.0",
33-
"phpunit/phpunit": "^9.5|^10.0"
31+
"phpstan/phpstan-deprecation-rules": "^1.0|^2.0",
32+
"phpstan/phpstan-phpunit": "^1.0|^2.0",
33+
"phpunit/phpunit": "^9.5|^10.0|^11.0"
3434
},
3535
"autoload": {
3636
"psr-4": {

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)