Skip to content

Merge pull request #1692 from buckaroo-it/BTI-1169-Magento-2-Update-T… #6570

Merge pull request #1692 from buckaroo-it/BTI-1169-Magento-2-Update-T…

Merge pull request #1692 from buckaroo-it/BTI-1169-Magento-2-Update-T… #6570

Workflow file for this run

name: M2 Coding Standard
on:
push:
pull_request:
# Prevent duplicate runs: cancel in-progress runs for the same PR/branch
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
phpcs:
name: M2 Code Analysis
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
coverage: none
- name: Install PHPCS and Magento Coding Standard
run: |
composer global config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer true
composer global require squizlabs/php_codesniffer:^3.7
composer global require magento/magento-coding-standard
~/.composer/vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/magento/magento-coding-standard
- name: Run PHPCS with custom rules
run: |
~/.composer/vendor/bin/phpcs --standard=phpcs.xml --colors -p .
continue-on-error: true
working-directory: ${{ github.workspace }}
phpmd:
name: M2 Mess Detection
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v5
- uses: extdn/github-actions-m2/magento-mess-detector@master
phpstan:
name: M2 PHPStan
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v5
- uses: extdn/github-actions-m2/magento-phpstan/8.4@master
with:
composer_name: buckaroo/magento2