Merge pull request #27 from Hackkzy/master #19
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: PHPCS Linting | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
phpcs: | |
name: PHPCS Job | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout to plugin repository | |
uses: actions/checkout@v3 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer:v2 | |
- name: Setup WPCS | |
run: | | |
composer i | |
./vendor/bin/phpcs --standard=WordPress --extensions=php app/ |