Skip to content

Updated workflows

Updated workflows #87

Workflow file for this run

name: WordPress Coding Standards
on: pull_request
jobs:
phpcs:
name: Check Coding Standards
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: composer install --no-interaction --no-dev --no-progress
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
standard: 'WordPress'
extra_args: '--report-json=./phpcs.json'
excludes: '.github/ tests/'
- name: Update summary
run: |
npx --yes github:10up/phpcs-json-to-md --path ./phpcs.json --output ./phpcs.md
cat phpcs.md >> $GITHUB_STEP_SUMMARY
- name: Run plugin check
uses: swissspidy/wp-plugin-check-action@v1
with:
exclude-checks: |
plugin_review_phpcs