Skip to content

Commit

Permalink
Use default config name of phpunit and phpstan.
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo committed Jan 4, 2024
1 parent 908419d commit 8b2656d
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
4 changes: 4 additions & 0 deletions phpstan.neon → phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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\\_]+\(\)#'
Expand Down
File renamed without changes.

0 comments on commit 8b2656d

Please sign in to comment.