Skip to content
Snippets Groups Projects
Verified Commit 6950ec5b authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #3390073 by catch, fjgarlin: Use 'needs' instead of 'dependencies' to...

Issue #3390073 by catch, fjgarlin: Use 'needs' instead of 'dependencies' to speed up gitlab CI jobs and run phpstan first
parent 43169249
No related branches found
No related tags found
No related merge requests found
...@@ -93,11 +93,11 @@ stages: ...@@ -93,11 +93,11 @@ stages:
cache: cache:
policy: pull policy: pull
<<: *composer-cache <<: *composer-cache
dependencies: needs:
- '📦️ Composer' - '📦️ Composer'
.with-yarn-cache: &with-yarn-cache .with-yarn-cache: &with-yarn-cache
dependencies: needs:
- '📦️ Yarn' - '📦️ Yarn'
cache: cache:
policy: pull policy: pull
...@@ -247,23 +247,23 @@ stages: ...@@ -247,23 +247,23 @@ stages:
# Lint Jobs # Lint Jobs
################ ################
'🧹 PHP Coding standards (PHPCS)': '🧹 PHP Static Analysis (phpstan)':
<<: [ *with-composer-cache, *junit-artifacts, *default-job-settings-lint ] <<: [ *with-composer-cache, *junit-artifacts, *default-job-settings-lint ]
stage: 🪄 Lint stage: 🪄 Lint
script: script:
- composer phpcs -- --report-full --report-summary --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=phpcs-quality-report.json - php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --error-format=gitlab > phpstan-quality-report.json
artifacts: artifacts:
reports: reports:
codequality: phpcs-quality-report.json codequality: phpstan-quality-report.json
'🧹 PHP Static Analysis (phpstan)': '🧹 PHP Coding standards (PHPCS)':
<<: [ *with-composer-cache, *junit-artifacts, *default-job-settings-lint ] <<: [ *with-composer-cache, *junit-artifacts, *default-job-settings-lint ]
stage: 🪄 Lint stage: 🪄 Lint
script: script:
- php vendor/bin/phpstan analyze --configuration=./core/phpstan.neon.dist --error-format=gitlab > phpstan-quality-report.json - composer phpcs -- --report-full --report-summary --report-\\Micheh\\PhpCodeSniffer\\Report\\Gitlab=phpcs-quality-report.json
artifacts: artifacts:
reports: reports:
codequality: phpstan-quality-report.json codequality: phpcs-quality-report.json
'🧹 CSS linting (stylelint)': '🧹 CSS linting (stylelint)':
<<: [ *with-yarn-cache, *junit-artifacts, *default-job-settings-lint ] <<: [ *with-yarn-cache, *junit-artifacts, *default-job-settings-lint ]
......
...@@ -45,14 +45,14 @@ stages: ...@@ -45,14 +45,14 @@ stages:
- ./core/node_modules - ./core/node_modules
.with-composer-cache: &with-composer-cache .with-composer-cache: &with-composer-cache
dependencies: needs:
- '📦️ Composer' - '📦️ Composer'
cache: cache:
policy: pull policy: pull
<<: *composer-cache <<: *composer-cache
.with-yarn-cache: &with-yarn-cache .with-yarn-cache: &with-yarn-cache
dependencies: needs:
- '📦️ Yarn' - '📦️ Yarn'
cache: cache:
policy: pull policy: pull
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment