Skip to content
play

GitHub Action

Coding Standard for Magento 2

v1.5 Latest version

Coding Standard for Magento 2

play

Coding Standard for Magento 2

Github Action for magento 2

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Coding Standard for Magento 2

uses: shikhamis11/[email protected]

Learn more about this action in shikhamis11/magento2-github-action

Choose a version

Coding Standard with Magento 2 github action

This action checks coding standard of magento 2 extensions.

How to use it

In your GitHub repository add below flow at path .github/workflows/php.yml

name: M2 Coding Standard
on: [push, pull_request]

jobs:
  static:
    name: Magento 2 Coding Standard
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Magento Coding Standard Test
        id: magento
        uses: shikhamis11/magento2-github-action@master
        with:
          errorSeverity: "10"
          warningSeverity: "10"

      # Use the output from the `magento` step
      - name: Get the output time
        run: echo "Action Output, ${{ steps.magento.outputs.time }}"

Inputs

errorSeverity

warningSeverity

Outputs

errors

The test result

Example usage

uses: shikhamis11/magento2-github-action@master

with:

errorSeverity: "5"

warningSeverity: "5"