mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-06-11 01:13:14 +02:00
Update ci workflow, migrate phpunit config to latest schema.
This commit is contained in:
@@ -12,6 +12,8 @@ jobs:
|
||||
- uses: actions/checkout@v1
|
||||
- name: Install dependencies
|
||||
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
|
||||
run: php${{ matrix.php }} vendor/bin/phpunit --configuration Tests/phpunit.xml --verbose --fail-on-warning
|
||||
- name: Run phpstan
|
||||
|
||||
@@ -2,3 +2,4 @@ vendor/
|
||||
composer.lock
|
||||
.php-cs-fixer.cache
|
||||
.idea/
|
||||
Tests/.phpunit.result.cache
|
||||
|
||||
+15
-14
@@ -1,16 +1,17 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<phpunit colors="true" verbose="true">
|
||||
<testsuites>
|
||||
<testsuite name="Tests">
|
||||
<file>./Tests.php</file>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">../SourceQuery</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
<logging>
|
||||
<log type="coverage-clover" target="../build/logs/clover.xml"/>
|
||||
</logging>
|
||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" colors="true" verbose="true" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
|
||||
<coverage processUncoveredFiles="true">
|
||||
<include>
|
||||
<directory suffix=".php">../SourceQuery</directory>
|
||||
</include>
|
||||
<report>
|
||||
<clover outputFile="../build/logs/clover.xml"/>
|
||||
</report>
|
||||
</coverage>
|
||||
<testsuites>
|
||||
<testsuite name="Tests">
|
||||
<file>./Tests.php</file>
|
||||
</testsuite>
|
||||
</testsuites>
|
||||
<logging/>
|
||||
</phpunit>
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
"scripts": {
|
||||
"psalm": "psalm",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user