Skip to content

Add field to show template #12

Add field to show template

Add field to show template #12

Workflow file for this run

name: PHP Linting
on:
push:
branches:
- main
- develop
pull_request:
jobs:
phpcs:
name: PHP CodeSniffer
runs-on: ubuntu-latest
strategy:
matrix:
php: ["7.4", "8.1", "8.2"]
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer, phpcs
- name: Install Dependencies
run: |
cd $GITHUB_WORKSPACE
composer install
- name: Run PHP_CodeSniffer
run: |
$GITHUB_WORKSPACE/vendor/bin/phpcs --standard=WordPress --ignore=vendor/ --extensions=php $GITHUB_WORKSPACE