Compare commits
8 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37a459a62e | ||
|
|
317d124f87 | ||
|
|
e88a796700 | ||
|
|
9a715e40f8 | ||
|
|
a24a24c082 | ||
|
|
a8021b40d8 | ||
|
|
e3635365bc | ||
|
|
35ce7d1376 |
2 changed files with 43 additions and 0 deletions
|
|
@ -1,3 +1,11 @@
|
||||||
|
spec:
|
||||||
|
inputs:
|
||||||
|
enable_rector:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- project: 'ldc-web/shared-ci'
|
- project: 'ldc-web/shared-ci'
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
|
|
@ -5,6 +13,11 @@ include:
|
||||||
- project: 'ldc-web/shared-ci'
|
- project: 'ldc-web/shared-ci'
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
file: 'lint/phpstan.yml'
|
file: 'lint/phpstan.yml'
|
||||||
|
- project: "ldc-web/shared-ci"
|
||||||
|
ref: "main"
|
||||||
|
file: "lint/rector.yml"
|
||||||
|
inputs:
|
||||||
|
enable_rector: $[[ inputs.enable_rector ]]
|
||||||
- project: 'ldc-web/shared-ci'
|
- project: 'ldc-web/shared-ci'
|
||||||
ref: 'main'
|
ref: 'main'
|
||||||
file: 'lint/eslint.yml'
|
file: 'lint/eslint.yml'
|
||||||
|
|
|
||||||
30
lint/rector.yml
Normal file
30
lint/rector.yml
Normal file
|
|
@ -0,0 +1,30 @@
|
||||||
|
spec:
|
||||||
|
inputs:
|
||||||
|
enable_rector:
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
rector:
|
||||||
|
stage: lint
|
||||||
|
image: $CI_REGISTRY/ldc-web/projets/ldc-web-images-docker/uwil-qa-8.5:latest
|
||||||
|
cache:
|
||||||
|
key: rector-cache-$CI_COMMIT_REF_SLUG
|
||||||
|
paths:
|
||||||
|
- .rector-cache/
|
||||||
|
before_script:
|
||||||
|
- composer config gitlab-token.lab.s-web.fr $CI_DEPLOY_USER $CI_DEPLOY_PASSWORD
|
||||||
|
- composer install --no-scripts
|
||||||
|
script:
|
||||||
|
- vendor/bin/rector process --dry-run --no-progress-bar --output-format=junit > rector-report.xml
|
||||||
|
artifacts:
|
||||||
|
when: always
|
||||||
|
expose_as: 'rector'
|
||||||
|
paths:
|
||||||
|
- rector-report.xml
|
||||||
|
reports:
|
||||||
|
junit: rector-report.xml
|
||||||
|
allow_failure: true
|
||||||
|
rules:
|
||||||
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" && "$[[ inputs.enable_rector ]]" == "true"'
|
||||||
Loading…
Add table
Reference in a new issue