diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7b68b23..98c3837 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,9 +9,9 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - php-version: [ '8.1', '8.2' ] - swoole-version: [ 'v5.0.3', 'v5.1.0', 'master' ] - max-parallel: 5 + php-version: [ '8.1', '8.2', '8.3' ] + swoole-version: [ 'v5.0.3', 'v5.1.1', 'master' ] + max-parallel: 9 env: SW_VERSION: ${{ matrix.swoole-version }} PHP_VERSION: ${{ matrix.php-version }} diff --git a/composer.json b/composer.json index 365951c..c93d3c2 100644 --- a/composer.json +++ b/composer.json @@ -81,10 +81,10 @@ "post-autoload-dump": [ "rm -rf runtime/container" ], - "analyse": "phpstan analyse --memory-limit 512M -l 0 -c phpstan.neon ./app ./config", + "analyse": "phpstan analyse --memory-limit 512M", "cs-fix": "php-cs-fixer fix $1", "start": "php ./bin/hyperf.php start", - "test": "co-phpunit --prepend test/bootstrap.php -c phpunit.xml --colors=always", + "test": "co-phpunit --prepend test/bootstrap.php --colors=always", "rector": "rector process --clear-cache" } } diff --git a/phpstan.neon b/phpstan.neon.dist similarity index 93% rename from phpstan.neon rename to phpstan.neon.dist index 71c2789..6a22055 100644 --- a/phpstan.neon +++ b/phpstan.neon.dist @@ -7,6 +7,10 @@ includes: # 需要执行 composer require phpstan/phpstan-deprecation-rules --dev # - vendor/phpstan/phpstan-deprecation-rules/rules.neon parameters: + level: 0 + paths: + - app + - config reportUnmatchedIgnoredErrors: false ignoreErrors: - '#Static call to instance method Hyperf\\HttpServer\\Router\\Router::[a-zA-Z0-9\\_]+\(\)#' diff --git a/phpunit.xml b/phpunit.xml.dist similarity index 100% rename from phpunit.xml rename to phpunit.xml.dist