ci: add phpstan static analysis to .gitlabci.yml

This commit is contained in:
Yassine Doghri 2021-05-12 15:23:50 +00:00
parent b735b369a7
commit 4a33c50fb6
No known key found for this signature in database
GPG Key ID: 3E7F89498B960C9F
2 changed files with 8 additions and 4 deletions

View File

@ -8,7 +8,6 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended"
],
"parserOptions": {

View File

@ -44,13 +44,18 @@ before_script:
tests:
stage: quality
script:
- vendor/bin/phpunit
- composer test
analysis:
stage: quality
script:
# run phpstan
- composer analyse
code-review:
stage: quality
script:
# run rector
- vendor/bin/rector process --dry-run
- composer rector
bundle_app:
stage: bundle