Skip to content

Commit

Permalink
update CI config, #89
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed May 24, 2021
1 parent 600f03d commit 2578a5b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,20 @@ jobs:
php: ['7.1', '7.2', '7.3', '7.4', '8.0']
# max 4.4.16, see https://github.com/symfony/symfony/issues/39521
# max 5.1.8, see https://github.com/symfony/symfony/issues/39521
yaml: ['5.1.8', '4.4.16', '^3.4']
yaml: ['5.2.9', '5.1.11', '4.4.24', '^3.4']
exclude:
# Symfony YAML does not run on PHP 7.1
- php: '7.1'
yaml: '5.1.8'
yaml: '5.1.11'
- php: '7.1'
yaml: '5.2.9'
include:
- php: '7.4'
os: windows-latest
yaml: '5.1.8'
yaml: '5.2.9'
- php: '7.4'
os: macos-latest
yaml: '5.1.8'
yaml: '5.2.9'


runs-on: ${{ matrix.os }}
Expand Down
22 changes: 15 additions & 7 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<phpunit bootstrap="./tests/bootstrap.php"
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.4/phpunit.xsd"
bootstrap="./tests/bootstrap.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
Expand All @@ -10,13 +13,18 @@
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<filter><!-- compatibility with PHPUnit < 9 -->
<whitelist>
<directory>./src</directory>
</whitelist>
</filter>
<coverage>
<include>
<directory>./src</directory>
</whitelist>
<blacklist>
</include>
<exclude>
<directory>./vendor</directory>
<directory>./tests</directory>
</blacklist>
</filter>
</exclude>
</coverage>
</phpunit>

0 comments on commit 2578a5b

Please sign in to comment.