Skip to content

Commit 2578a5b

Browse files
committed
update CI config, #89
1 parent 600f03d commit 2578a5b

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

.github/workflows/php.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,20 @@ jobs:
1717
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
1818
# max 4.4.16, see https://github.com/symfony/symfony/issues/39521
1919
# max 5.1.8, see https://github.com/symfony/symfony/issues/39521
20-
yaml: ['5.1.8', '4.4.16', '^3.4']
20+
yaml: ['5.2.9', '5.1.11', '4.4.24', '^3.4']
2121
exclude:
2222
# Symfony YAML does not run on PHP 7.1
2323
- php: '7.1'
24-
yaml: '5.1.8'
24+
yaml: '5.1.11'
25+
- php: '7.1'
26+
yaml: '5.2.9'
2527
include:
2628
- php: '7.4'
2729
os: windows-latest
28-
yaml: '5.1.8'
30+
yaml: '5.2.9'
2931
- php: '7.4'
3032
os: macos-latest
31-
yaml: '5.1.8'
33+
yaml: '5.2.9'
3234

3335

3436
runs-on: ${{ matrix.os }}

phpunit.xml.dist

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<phpunit bootstrap="./tests/bootstrap.php"
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.4/phpunit.xsd"
5+
bootstrap="./tests/bootstrap.php"
36
colors="true"
47
convertErrorsToExceptions="true"
58
convertNoticesToExceptions="true"
@@ -10,13 +13,18 @@
1013
<directory suffix="Test.php">./tests</directory>
1114
</testsuite>
1215
</testsuites>
13-
<filter>
14-
<whitelist>
16+
<filter><!-- compatibility with PHPUnit < 9 -->
17+
<whitelist>
18+
<directory>./src</directory>
19+
</whitelist>
20+
</filter>
21+
<coverage>
22+
<include>
1523
<directory>./src</directory>
16-
</whitelist>
17-
<blacklist>
24+
</include>
25+
<exclude>
1826
<directory>./vendor</directory>
1927
<directory>./tests</directory>
20-
</blacklist>
21-
</filter>
28+
</exclude>
29+
</coverage>
2230
</phpunit>

0 commit comments

Comments
 (0)