diff --git a/.github/workflows/plugin-check.yaml b/.github/workflows/plugin-check.yaml new file mode 100644 index 0000000..50c5466 --- /dev/null +++ b/.github/workflows/plugin-check.yaml @@ -0,0 +1,21 @@ +name: 'WordPress Plugin Check' +on: # rebuild any PRs and main branch changes + pull_request: + push: + branches: + - main + - 'releases/*' + +jobs: + test: + name: 'Run WordPress Plugin Check' + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Run plugin check + uses: wordpress/plugin-check-action@v1 + with: + exclude-directories: ".github,bin,tests" + exclude-files: ".editorconfig,.gitattributes,.gitignore,.wordpress-version-checker.json,phpcs.xml.dist,phpunit.xml.dist,readme.md"