ci: add phpstan static analysis to .gitlabci.yml
This commit is contained in:
parent
b735b369a7
commit
4a33c50fb6
|
@ -8,7 +8,6 @@
|
||||||
"extends": [
|
"extends": [
|
||||||
"eslint:recommended",
|
"eslint:recommended",
|
||||||
"plugin:@typescript-eslint/recommended",
|
"plugin:@typescript-eslint/recommended",
|
||||||
"prettier/@typescript-eslint",
|
|
||||||
"plugin:prettier/recommended"
|
"plugin:prettier/recommended"
|
||||||
],
|
],
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
|
|
@ -44,13 +44,18 @@ before_script:
|
||||||
tests:
|
tests:
|
||||||
stage: quality
|
stage: quality
|
||||||
script:
|
script:
|
||||||
- vendor/bin/phpunit
|
- composer test
|
||||||
|
|
||||||
|
analysis:
|
||||||
|
stage: quality
|
||||||
|
script:
|
||||||
|
# run phpstan
|
||||||
|
- composer analyse
|
||||||
|
|
||||||
code-review:
|
code-review:
|
||||||
stage: quality
|
stage: quality
|
||||||
script:
|
script:
|
||||||
# run rector
|
- composer rector
|
||||||
- vendor/bin/rector process --dry-run
|
|
||||||
|
|
||||||
bundle_app:
|
bundle_app:
|
||||||
stage: bundle
|
stage: bundle
|
||||||
|
|
Loading…
Reference in New Issue