Skip to content

Commit 4a070e0

Browse files
committed
Added Laravel 12 to GitHub actions
1 parent 079af28 commit 4a070e0

File tree

3 files changed

+80
-18
lines changed

3 files changed

+80
-18
lines changed

.github/workflows/unittests.yml

+47-1
Original file line numberDiff line numberDiff line change
@@ -11,43 +11,89 @@ jobs:
1111
- php: 8.1
1212
laravel: 10.*
1313
testbench: 8.*
14+
phpunit-config: 'phpunit-10.xml'
1415
composer-flag: '--prefer-stable'
1516
- php: 8.2
1617
laravel: 10.*
1718
testbench: 8.*
19+
phpunit-config: 'phpunit-10.xml'
1820
composer-flag: '--prefer-stable'
1921
- php: 8.3
2022
laravel: 10.*
2123
testbench: 8.*
24+
phpunit-config: 'phpunit-10.xml'
2225
composer-flag: '--prefer-stable'
2326
- php: 8.1
2427
laravel: 10.*
2528
testbench: 8.*
29+
phpunit-config: 'phpunit-10.xml'
2630
composer-flag: '--prefer-lowest'
2731
- php: 8.2
2832
laravel: 10.*
2933
testbench: 8.*
34+
phpunit-config: 'phpunit-10.xml'
3035
composer-flag: '--prefer-lowest'
3136
- php: 8.3
3237
laravel: 10.*
3338
testbench: 8.*
39+
phpunit-config: 'phpunit-10.xml'
3440
composer-flag: '--prefer-lowest'
3541
# Laravel 11.*
3642
- php: 8.2
3743
laravel: 11.*
3844
testbench: 9.*
45+
phpunit-config: 'phpunit.xml'
3946
composer-flag: '--prefer-stable'
4047
- php: 8.3
4148
laravel: 11.*
4249
testbench: 9.*
50+
phpunit-config: 'phpunit.xml'
4351
composer-flag: '--prefer-stable'
4452
- php: 8.2
4553
laravel: 11.*
4654
testbench: 9.*
55+
phpunit-config: 'phpunit.xml'
4756
composer-flag: '--prefer-lowest'
4857
- php: 8.2
4958
laravel: 11.*
5059
testbench: 9.*
60+
phpunit-config: 'phpunit.xml'
61+
composer-flag: '--prefer-lowest'
62+
- php: 8.4
63+
laravel: 11.*
64+
testbench: 9.*
65+
phpunit-config: 'phpunit.xml'
66+
composer-flag: '--prefer-stable'
67+
# Laravel 12.*
68+
- php: 8.2
69+
laravel: 12.*
70+
testbench: 10.*
71+
phpunit-config: 'phpunit.xml'
72+
composer-flag: '--prefer-stable'
73+
- php: 8.3
74+
laravel: 12.*
75+
testbench: 10.*
76+
phpunit-config: 'phpunit.xml'
77+
composer-flag: '--prefer-stable'
78+
- php: 8.4
79+
laravel: 12.*
80+
testbench: 10.*
81+
phpunit-config: 'phpunit.xml'
82+
composer-flag: '--prefer-stable'
83+
- php: 8.2
84+
laravel: 12.*
85+
testbench: 10.*
86+
phpunit-config: 'phpunit.xml'
87+
composer-flag: '--prefer-lowest'
88+
- php: 8.3
89+
laravel: 12.*
90+
testbench: 10.*
91+
phpunit-config: 'phpunit.xml'
92+
composer-flag: '--prefer-lowest'
93+
- php: 8.4
94+
laravel: 12.*
95+
testbench: 10.*
96+
phpunit-config: 'phpunit.xml'
5197
composer-flag: '--prefer-lowest'
5298
runs-on: ubuntu-latest
5399

@@ -68,7 +114,7 @@ jobs:
68114
run: composer update ${{ matrix.composer-flag }} --prefer-dist --no-interaction
69115

70116
- name: Run PHPUnit
71-
run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text --coverage-clover=coverage.xml
117+
run: XDEBUG_MODE=coverage vendor/bin/phpunit --config="${{ matrix.phpunit-config }}" --coverage-text --coverage-clover=coverage.xml
72118

73119
- name: Upload coverage reports to Codecov
74120
uses: codecov/codecov-action@v5

phpunit-10.xml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
3+
colors="true" processIsolation="false" stopOnFailure="false"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
5+
backupStaticProperties="false">
6+
<coverage>
7+
<include>
8+
<directory suffix=".php">src/</directory>
9+
</include>
10+
</coverage>
11+
<testsuites>
12+
<testsuite name="Feature">
13+
<directory>tests/Feature</directory>
14+
</testsuite>
15+
</testsuites>
16+
<php>
17+
<env name="DB_CONNECTION" value="testing"/>
18+
</php>
19+
</phpunit>

phpunit.xml

+14-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false"
3-
colors="true" processIsolation="false" stopOnFailure="false"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache"
5-
backupStaticProperties="false">
6-
<coverage>
7-
<include>
8-
<directory suffix=".php">src/</directory>
9-
</include>
10-
</coverage>
11-
<testsuites>
12-
<testsuite name="Feature">
13-
<directory>tests/Feature</directory>
14-
</testsuite>
15-
</testsuites>
16-
<php>
17-
<env name="DB_CONNECTION" value="testing"/>
18-
</php>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
3+
<testsuites>
4+
<testsuite name="Feature">
5+
<directory>tests/Feature</directory>
6+
</testsuite>
7+
</testsuites>
8+
<php>
9+
<env name="DB_CONNECTION" value="testing"/>
10+
</php>
11+
<source>
12+
<include>
13+
<directory suffix=".php">src/</directory>
14+
</include>
15+
</source>
1916
</phpunit>

0 commit comments

Comments
 (0)