Skip to content

Quickly integrate Magento Coding Standard check on your extensions at GitHub with customized severity levels ✨ ✌️

License

Notifications You must be signed in to change notification settings

shikhamis11/magento2-github-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

Quickly integrate Magento Coding Standard check on your extensions at GitHub with customized severity levels ✨ ✌️

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published