Update ci workflow, migrate phpunit config to latest schema.

pull/150/head
Anthony Birkett 4 years ago
parent 780ebba6a2
commit d323c6da88

@ -12,6 +12,8 @@ jobs:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Install dependencies - name: Install dependencies
run: composer install --no-interaction --no-progress run: composer install --no-interaction --no-progress
- name: Run cs-fixer
run: php${{ matrix.php }} vendor/bin/php-cs-fixer --config=.php-cspfixer.php
- name: Run tests - name: Run tests
run: php${{ matrix.php }} vendor/bin/phpunit --configuration Tests/phpunit.xml --verbose --fail-on-warning run: php${{ matrix.php }} vendor/bin/phpunit --configuration Tests/phpunit.xml --verbose --fail-on-warning
- name: Run phpstan - name: Run phpstan

1
.gitignore vendored

@ -2,3 +2,4 @@ vendor/
composer.lock composer.lock
.php-cs-fixer.cache .php-cs-fixer.cache
.idea/ .idea/
Tests/.phpunit.result.cache

@ -1,16 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" verbose="true"> <phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<testsuites> <coverage processUncoveredFiles="true">
<testsuite name="Tests"> <include>
<file>./Tests.php</file> <directory suffix=".php">../SourceQuery</directory>
</testsuite> </include>
</testsuites> <report>
<filter> <clover outputFile="../build/logs/clover.xml"/>
<whitelist processUncoveredFilesFromWhitelist="true"> </report>
<directory suffix=".php">../SourceQuery</directory> </coverage>
</whitelist> <testsuites>
</filter> <testsuite name="Tests">
<logging> <file>./Tests.php</file>
<log type="coverage-clover" target="../build/logs/clover.xml"/> </testsuite>
</logging> </testsuites>
<logging/>
</phpunit> </phpunit>

@ -40,7 +40,7 @@
"scripts": { "scripts": {
"psalm": "psalm", "psalm": "psalm",
"phpstan": "phpstan", "phpstan": "phpstan",
"phpunit": "phpunit Tests/Tests.php", "phpunit": "phpunit --configuration Tests/phpunit.xml --verbose --fail-on-warning",
"php-cs-fixer": "php-cs-fixer fix --config=.php-cs-fixer.php" "php-cs-fixer": "php-cs-fixer fix --config=.php-cs-fixer.php"
} }
} }

Loading…
Cancel
Save