Skip to content

Commit

Permalink
[Quality] Removing buggy PHPStan analysis step on (2.10.x)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbayet committed Sep 24, 2023
1 parent 2b74e79 commit 074a33a
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/01-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php-versions: ['7.4', '8.1']
php-versions: ['7.4']
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -44,9 +44,8 @@ jobs:
uses: actions/cache@v2
with:
path: vendor
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ github.base_ref }}-${{ hashFiles('**/composer.lock') }}
key: ${{ runner.os }}-php-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-php-${{ matrix.php-versions }}-${{ github.base_ref }}
${{ runner.os }}-php-${{ matrix.php-versions }}
- name: Prepare credentials
Expand All @@ -55,10 +54,6 @@ jobs:
MAGENTO_PASSWORD: ${{ secrets.MAGENTO_PASSWORD }}
run: composer config -g http-basic.repo.magento.com "$MAGENTO_USERNAME" "$MAGENTO_PASSWORD"

- name: Add phpstan/phpstan
if: ${{ matrix.php-versions == '8.1' }}
run: composer require --no-update --dev smile/magento2-smilelab-phpstan ^1.0

- name: Install dependencies
if: steps.composer-cache.outputs.cache-hit != 'true'
run: composer install --prefer-dist --no-progress --no-suggest
Expand All @@ -74,9 +69,5 @@ jobs:
- name: PHPMD
run: vendor/bin/phpmd src text vendor/smile/magento2-smilelab-phpmd/phpmd-rulesets/rulset.xml

- name: PHPStan
if: ${{ matrix.php-versions == '8.1' }}
run: vendor/bin/phpstan analyze --level=0 src

- name: PHPUnit
run: vendor/bin/phpunit -c Resources/tests/unit/phpunit.xml

0 comments on commit 074a33a

Please sign in to comment.