Skip to content

Commit 0c42936

Browse files
committed
ci: change phpunit schema in runtime
1 parent ea0d800 commit 0c42936

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ jobs:
3535
run: vendor/bin/phpstan --memory-limit=512M analyze
3636

3737
- name: Unit testing
38+
run: vendor/bin/phpunit --migrate-configuration
3839
run: vendor/bin/phpunit

phpunit.xml

+20-7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
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" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
bootstrap="vendor/autoload.php"
5+
backupGlobals="false"
6+
backupStaticAttributes="false"
7+
colors="true"
8+
verbose="true"
9+
convertErrorsToExceptions="true"
10+
convertNoticesToExceptions="true"
11+
convertWarningsToExceptions="true"
12+
processIsolation="false"
13+
stopOnFailure="false"
14+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
15+
>
16+
<coverage>
17+
<include>
18+
<directory suffix=".php">src/</directory>
19+
</include>
20+
</coverage>
321
<testsuites>
422
<testsuite name="Unit">
523
<directory suffix="Test.php">./tests/Unit</directory>
@@ -9,9 +27,4 @@
927
<env name="DB_CONNECTION" value="testing"/>
1028
<env name="APP_KEY" value="base64:2fl+Ktvkfl+Fuz4Qp/A75G2RTiWVA/ZoKZvp6fiiM10="/>
1129
</php>
12-
<source>
13-
<include>
14-
<directory suffix=".php">src/</directory>
15-
</include>
16-
</source>
17-
</phpunit>
30+
</phpunit>

0 commit comments

Comments
 (0)