ci: move security stage to the end and exclude intellipest from linter jobs
This commit is contained in:
parent
c85379b50e
commit
6a76b4f072
1 changed files with 3 additions and 6 deletions
|
|
@ -1,7 +1,4 @@
|
|||
include:
|
||||
- project: "ldc-web/shared-ci"
|
||||
ref: "main"
|
||||
file: "lint/lint.yml"
|
||||
- project: "ldc-web/shared-ci"
|
||||
ref: "main"
|
||||
file: "security/security.yml"
|
||||
|
|
@ -9,10 +6,10 @@ include:
|
|||
- template: Security/Container-Scanning.gitlab-ci.yml
|
||||
|
||||
stages:
|
||||
- security
|
||||
- deps
|
||||
- lint
|
||||
- test
|
||||
- security
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
|
|
@ -69,7 +66,7 @@ phplint:
|
|||
variables:
|
||||
TEXT_REPORT: php-l-report.txt
|
||||
script:
|
||||
- vendor/bin/parallel-lint --exclude vendor --exclude storage --exclude bootstrap --exclude node_modules . > "$TEXT_REPORT" 2>&1; status=$?
|
||||
- vendor/bin/parallel-lint --exclude vendor --exclude storage --exclude bootstrap --exclude node_modules --exclude .intellipest . > "$TEXT_REPORT" 2>&1; status=$?
|
||||
- cat "$TEXT_REPORT"
|
||||
- exit $status
|
||||
artifacts:
|
||||
|
|
@ -99,7 +96,7 @@ phpcs:
|
|||
variables:
|
||||
PHPCS_REPORT: phpcs-report.txt
|
||||
script:
|
||||
- vendor/bin/phpcs -q --report=full --standard=phpcs.xml --extensions=php --ignore=vendor/*,storage/*,bootstrap/*,node_modules/* . > "$PHPCS_REPORT" 2>&1; status=$?
|
||||
- vendor/bin/phpcs -q --report=full --standard=phpcs.xml --extensions=php --ignore=vendor/*,storage/*,bootstrap/*,node_modules/*,.intellipest/* . > "$PHPCS_REPORT" 2>&1; status=$?
|
||||
- cat "$PHPCS_REPORT"
|
||||
- exit $status
|
||||
artifacts:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue