feat: add coding standard action (#51)

This commit is contained in:
Daniel Sloof
2022-09-06 16:36:33 +02:00
committed by GitHub
parent e8e2509a90
commit 2a102c253d
4 changed files with 138 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
# Magento 2 Coding Standard Action
A Github Action that runs the Magento Coding Standard.
## Inputs
See the [action.yml](./action.yml)
## Usage
```yml
name: Coding Standard
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
coding-standard:
runs-on: ubuntu-latest
steps:
- uses: graycoreio/github-actions-magento2/coding-standard@main
with:
version: 25 # Optional, will use the latest if omitted.
path: app/code # Optional, will be used when event is not a pull request.
```