Skip to content

Commit b6f0fb6

Browse files
committed
Update PHPUnit configuration and workflow fail-fast setting
1 parent 79831f3 commit b6f0fb6

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ${{ matrix.os }}
1010

1111
strategy:
12-
fail-fast: true
12+
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest]
1515
php: [8.2, 8.1, 8.0]

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ vendor
55
coverage
66
.php-cs-fixer.cache
77
.phpunit.result.cache
8+
.phpunit.cache

phpunit.xml.dist

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit
3-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4-
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd"
5-
bootstrap="vendor/autoload.php"
6-
backupGlobals="false"
7-
backupStaticAttributes="false"
8-
colors="true"
9-
verbose="true"
10-
convertErrorsToExceptions="true"
11-
convertNoticesToExceptions="true"
12-
convertWarningsToExceptions="true"
13-
processIsolation="false"
14-
stopOnFailure="false">
15-
<coverage>
16-
<include>
17-
<directory suffix=".php">src/</directory>
18-
</include>
19-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
203
<testsuites>
214
<testsuite name="Spatie Test Suite">
225
<directory>tests</directory>
@@ -25,4 +8,9 @@
258
<php>
269
<env name="DB_CONNECTION" value="testing"/>
2710
</php>
11+
<source>
12+
<include>
13+
<directory suffix=".php">src/</directory>
14+
</include>
15+
</source>
2816
</phpunit>

0 commit comments

Comments
 (0)