This repository's aim is to provide a set of open sourced GitHub actions to write better tested Magento 2 extensions.
Provides an action that can be used in your GitHub workflow to execute the latest Magento Coding Standard.
In your GitHub repository add the below as
.github/workflows/ci.yml
name: Continous Integration
on: [push, pull_request]
jobs:
static:
name: Static Code Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-coding-standard@master
Provides an action that can be used in your GitHub workflow to execute the PHP Mess Detector rules included in Magento 2 (link).
In your GitHub repository add the below as
.github/workflows/ci.yml
name: Continous Integration
on: [push, pull_request]
jobs:
phpmd:
name: M2 Mess Detector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-mess-detector@master
Provides an action that can be used in your GitHub workflow to execute the PHPStan rules included in Magento 2 (link).
In your GitHub repository add the below as
.github/workflows/ci.yml
name: Continous Integration
on: [push, pull_request]
jobs:
phpstan:
name: M2 PhpStan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: extdn/github-actions-m2/magento-phpstan@master