Skip to content

Commit 016f38f

Browse files
committed
ci(workflows): Update PHP and Laravel versions in tests.yml
- Upgrade PHP version from 8.3 to 8.4 - Add Laravel version 12.* to the testing matrix - Include new testbench version 10.* for Laravel 12 This change ensures compatibility with the latest PHP and Laravel versions for more comprehensive testing.
1 parent 9b199af commit 016f38f

File tree

3 files changed

+33
-18
lines changed

3 files changed

+33
-18
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
fail-fast: false
1010
matrix:
1111
os: [ ubuntu-latest ]
12-
php: [ 7.4, 8.3 ]
12+
php: [ 7.4, 8.4 ]
1313
dependency-version: [ prefer-stable ]
14-
laravel: [ 8.0.*, 9.*, 10.*, 11.* ]
14+
laravel: [ 8.0.*, 9.*, 10.*, 11.*, 12.* ]
1515
include:
1616
- laravel: 8.0.*
1717
testbench: 6.*
@@ -21,14 +21,18 @@ jobs:
2121
testbench: 8.*
2222
- laravel: 11.*
2323
testbench: 9.*
24+
- laravel: 12.*
25+
testbench: 10.*
2426
exclude:
2527
- php: 7.4
2628
laravel: 9.*
2729
- php: 7.4
2830
laravel: 10.*
2931
- php: 7.4
3032
laravel: 11.*
31-
- php: 8.3
33+
- php: 7.4
34+
laravel: 12.*
35+
- php: 8.4
3236
laravel: 8.0.*
3337

3438
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
"orchestra/testbench": "^6.47 || ^7.0 || ^8.0 || ^9.0 || ^10.0",
6666
"pestphp/pest": "^1.23 || ^2.0 || ^3.0",
6767
"pestphp/pest-plugin-faker": "^1.0 || ^2.0 || ^3.0",
68-
"pestphp/pest-plugin-laravel": "^1.2 || ^2.0",
68+
"pestphp/pest-plugin-laravel": "^1.2 || ^2.0 || ^3.0",
6969
"php-mock/php-mock-phpunit": "^2.10",
7070
"phpstan/extension-installer": "^1.4",
7171
"phpstan/phpstan-deprecation-rules": "^2.0",

phpunit.xml.dist

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit
33
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5-
backupGlobals="false"
6-
backupStaticAttributes="false"
74
bootstrap="vendor/autoload.php"
85
cacheResultFile="build/phpunit/.phpunit.result.cache"
96
colors="true"
10-
convertErrorsToExceptions="true"
11-
convertNoticesToExceptions="true"
12-
convertWarningsToExceptions="true"
13-
processIsolation="false"
14-
stopOnFailure="false"
157
verbose="true"
8+
xsi:noNamespaceSchemaLocation="./vendor/phpunit/phpunit/phpunit.xsd"
169
>
10+
<!--printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printer"-->
11+
<!--printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printers\DefaultPrinter"-->
12+
<!--printerClass="NunoMaduro\Collision\Adapters\Phpunit\Printers\ReportablePrinter"-->
13+
<testsuites>
14+
<testsuite name="Guanguans Test Suite">
15+
<directory>tests/</directory>
16+
<exclude>vendor/</exclude>
17+
</testsuite>
18+
</testsuites>
1719
<coverage>
1820
<include>
1921
<directory suffix=".php">src/</directory>
@@ -24,10 +26,19 @@
2426
<file>src/SoarServiceProvider.php</file>
2527
</exclude>
2628
</coverage>
27-
<testsuites>
28-
<testsuite name="Guanguans Test Suite">
29-
<directory>tests/</directory>
30-
<exclude>vendor/</exclude>
31-
</testsuite>
32-
</testsuites>
29+
<source>
30+
<include>
31+
<directory suffix=".php">src/</directory>
32+
</include>
33+
<exclude>
34+
<!--<directory>src/Contracts/</directory>-->
35+
<file>src/Support/QueryAnalyzer.php</file>
36+
<file>src/SoarServiceProvider.php</file>
37+
</exclude>
38+
</source>
39+
<extensions>
40+
<!--<extension class="NunoMaduro\Collision\Adapters\Phpunit\Printer"/>-->
41+
<!--<extension class="Ergebnis\PHPUnit\SlowTestDetector\Extension"/>-->
42+
<!--<bootstrap class="Ergebnis\PHPUnit\SlowTestDetector\Extension"/>-->
43+
</extensions>
3344
</phpunit>

0 commit comments

Comments
 (0)