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": [ "extends": [
"eslint:recommended", "eslint:recommended",
"plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended" "plugin:prettier/recommended"
], ],
"parserOptions": { "parserOptions": {

View File

@ -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