fix: compatibility with magento coding standard v33 (#10) #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Magento 2 Coding Standard Demo" | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
push: | |
branches: ["main"] | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
coding-standard: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/checkout@v4 | |
with: | |
repository: codemanufacture/magento2-dummy-module | |
ref: main | |
path: module | |
- name: Setup PHP with composer | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
tools: composer:2.3, phpcs:3.6 | |
- name: Run coding standard analysis | |
uses: ./ | |
with: | |
file_list: "${{github.workspace}}/module" | |
severity: 5 | |
ignore_errors_on_exit: 1 | |
ignore_warnings_on_exit: 1 |