mirror of
http://124.126.16.154:8888/singularity/HyperfDevelopmentKitCore.git
synced 2026-01-15 05:35:09 +08:00
build(ci): 完善 style-fix/syntax-check/unit-test
This commit is contained in:
@@ -79,13 +79,13 @@
|
||||
"prefer-stable": true,
|
||||
"scripts": {
|
||||
"post-root-package-install": [],
|
||||
"test": "vendor/bin/pest",
|
||||
"cs-fix": "vendor/bin/php-cs-fixer fix $1",
|
||||
"analyse": "vendor/bin/phpstan analyse -l 0 $1",
|
||||
"test": "vendor/bin/pest $1",
|
||||
"cs-fix": "vendor/bin/php-cs-fixer fix $1 --rules=@PSR12 --allow-risky=yes",
|
||||
"analyse": "vendor/bin/phpstan analyse $1",
|
||||
"ci": [
|
||||
"vendor/bin/pest --ci",
|
||||
"@cs-fix .",
|
||||
"@analyse publish/ src/ tests/",
|
||||
"@cs-fix",
|
||||
"@test --ci",
|
||||
"echo CI Success"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user