Skip to content

Add more stylistic readme descriptions and information #24

Add more stylistic readme descriptions and information

Add more stylistic readme descriptions and information #24

Workflow file for this run

name: PHP
on: [pull_request]
jobs:
lint-php:
name: PHP
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Setup PHP with Xdebug 2.x
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
coverage: xdebug2
- name: Set up PHPCS and WordPress-Coding-Standards
uses: php-actions/composer@v6
env:
COMPOSER: 'composer.json'
with:
php_version: '8.3'
version: '2.3.7'
args: '--ignore-platform-reqs --optimize-autoloader'
- name: Run PHP_CodeSniffer
run: |
vendor/bin/phpcs -p . --extensions=php --ignore=vendor,node_modules,src,js,css --standard=phpcs.xml
- name: Test PHP for syntax errors
run: find -L . -name '*.php' -print0 | xargs -0 -n 1 -P 4 php -l