This commit is contained in:
yansongda 2021-01-10 15:59:16 +08:00
parent 59eae53fec
commit dec32f3bb3
3 changed files with 14 additions and 13 deletions

View File

@ -3,8 +3,16 @@ on: [push, pull_request]
jobs:
php_cs_fixer:
name: php_cs_fixer
name: php_cs_fixer-php-${{ matrix.php }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php:
- 7.3
- 7.4
container:
image: yansongda/php-fpm:${{ matrix.php }}
steps:
- name: Checkout Code
uses: actions/checkout@master

View File

@ -27,7 +27,7 @@
},
"require-dev": {
"phpunit/phpunit": "^8.0 || ^9.0",
"mockery/mockery": "^1.2",
"mockery/mockery": "^1.4",
"friendsofphp/php-cs-fixer": "^2.15",
"symfony/var-dumper": "^5.1"
},

View File

@ -1,6 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
backupGlobals="false"
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="vendor/autoload.php"
colors="true"
@ -9,16 +8,10 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
cacheResult="false"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
<coverage>
<include>
<directory suffix=".php">src/</directory>
</include>
</coverage>
cacheResult="false">
<testsuites>
<testsuite name="Application Test Suite">
<directory>./tests/</directory>
<testsuite name="tests">
<directory suffix="Test.php">./tests</directory>
</testsuite>
</testsuites>
</phpunit>