Skip to content

Adjust the WordPress standard referenced. #105

Adjust the WordPress standard referenced.

Adjust the WordPress standard referenced. #105

Workflow file for this run

name: WordPress Coding Standards
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
jobs:
phpcs:
name: WPCS
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
standard: 'WordPress-Extra'
extra_args: '--report-json=./phpcs.json'
- name: List files for debug
run: ls -lah
- name: Update summary
if: success() && hashFiles('./phpcs.json') != ''
run: |
npm i -g github:10up/phpcs-json-to-md
phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
cat phpcs.md >> $GITHUB_STEP_SUMMARY