|
62 | 62 | }, |
63 | 63 | "scripts": { |
64 | 64 | "ci": [ |
65 | | - "@ci:static" |
| 65 | + "@ci:static", |
| 66 | + "@ci:dynamic" |
| 67 | + ], |
| 68 | + "ci:dynamic": [ |
| 69 | + "@ci:tests" |
66 | 70 | ], |
67 | 71 | "ci:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots --diff bin src tests", |
68 | 72 | "ci:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon", |
69 | 73 | "ci:static": [ |
70 | 74 | "@ci:php:fixer", |
71 | 75 | "@ci:php:stan" |
72 | 76 | ], |
| 77 | + "ci:tests": [ |
| 78 | + "@ci:tests:unit" |
| 79 | + ], |
| 80 | + "ci:tests:sof": "\"./vendor/bin/phpunit\" --stop-on-failure --do-not-cache-result", |
| 81 | + "ci:tests:unit": "\"./vendor/bin/phpunit\" --do-not-cache-result", |
73 | 82 | "fix:php": [ |
74 | 83 | "@fix:php:fixer" |
75 | 84 | ], |
76 | 85 | "fix:php:fixer": "\"./.phive/php-cs-fixer\" --config=config/php-cs-fixer.php fix bin src tests", |
77 | 86 | "phpstan:baseline": "phpstan --configuration=config/phpstan.neon --generate-baseline=config/phpstan-baseline.neon" |
78 | 87 | }, |
79 | 88 | "scripts-descriptions": { |
80 | | - "ci": "Runs all dynamic and static code checks (i.e. currently, only the static checks).", |
| 89 | + "ci": "Runs all dynamic and static code checks.", |
| 90 | + "ci:dynamic": "Runs all dynamic code checks (i.e., currently, the unit tests).", |
81 | 91 | "ci:php:fixer": "Checks the code style with PHP CS Fixer.", |
82 | 92 | "ci:php:stan": "Checks the types with PHPStan.", |
83 | 93 | "ci:static": "Runs all static code analysis checks for the code.", |
| 94 | + "ci:tests": "Runs all dynamic tests (i.e., currently, the unit tests).", |
| 95 | + "ci:tests:sof": "Runs the unit tests and stops at the first failure.", |
| 96 | + "ci:tests:unit": "Runs all unit tests.", |
84 | 97 | "fix:php": "Autofixes all autofixable issues in the PHP code.", |
85 | 98 | "fix:php:fixer": "Fixes autofixable issues found by PHP CS Fixer.", |
86 | 99 | "phpstan:baseline": "Updates the PHPStan baseline file to match the code." |
|
0 commit comments