From 1d327cce03c7a0400bbf812d26676a777855d833 Mon Sep 17 00:00:00 2001 From: Richard BAYET Date: Wed, 4 Oct 2023 19:51:37 +0200 Subject: [PATCH] [Quality] Fixing specific PHPStan workflow sequencing --- .github/workflows/02-phpstan.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/02-phpstan.yml b/.github/workflows/02-phpstan.yml index d804af673..1d040e220 100644 --- a/.github/workflows/02-phpstan.yml +++ b/.github/workflows/02-phpstan.yml @@ -107,11 +107,6 @@ jobs: composer-${{ matrix.php-versions }}-${{ matrix.magento-editions }}- composer-${{ matrix.php-versions }}- - - name: "[Init] Add phpstan/phpstan" - if: steps.composer-cache.outputs.cache-hit == 'true' - working-directory: ${{ env.magento-directory }} - run: composer require --no-update --dev smile/magento2-smilelab-phpstan ^1.0 - - name: "[Init] Cache Magento install" id: magento-cache uses: actions/cache@v2 @@ -121,6 +116,11 @@ jobs: restore-keys: | magento-${{ matrix.php-versions }}-${{ matrix.magento-editions }}-${{ matrix.magento-versions }} + - name: "[Init] Add phpstan/phpstan" + if: steps.composer-cache.outputs.cache-hit == 'true' + working-directory: ${{ env.magento-directory }} + run: composer require --no-update --dev smile/magento2-smilelab-phpstan ^1.0 + - name: "[Init] Prepare credentials" if: ${{env.MAGENTO_USERNAME}} != 0 run: composer config -g http-basic.repo.magento.com "$MAGENTO_USERNAME" "$MAGENTO_PASSWORD"