NEW "WP Plugin Check" action (swissspidy/wp-plugin-check-action) (#82) #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'WordPress plugin checks' | |
on: | |
workflow_call: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Run plugin check | |
uses: swissspidy/wp-plugin-check-action@v1 | |
with: | |
# Personal access token (PAT) used to comment on pull requests. | |
# Not currently used. | |
# | |
# [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) | |
# | |
# Default: ${{ github.token }} | |
#repo-token: '' | |
# Build directory of your plugin. | |
# Defaults to current directory / repository root. | |
# | |
# Default: './' | |
#build-dir: '' | |
# List of checks to run. | |
# Each check should be separated with new lines. | |
# Examples: i18n_usage, file_type, late_escaping. | |
# By default, all checks are run. | |
# | |
# Default: '' | |
#checks: '' | |
# List of checks to exclude from running. | |
# Each check should be separated with new lines. | |
# Examples: i18n_usage, file_type, late_escaping. | |
# Applies after the `checks` input. | |
# | |
# Default: '' | |
#exclude-checks: '' | |
# List of categories to limit checks to. | |
# Each category should be separated with new lines. | |
# Examples: general, security | |
# By default, checks in all categories are run. | |
# | |
# Default: '' | |
#categories: '' | |
# List of directories to exclude from checks. | |
# Each category should be separated with new lines. | |
# | |
# Default: '' | |
exclude-directories: | | |
vendor | |
node_modules | |
# Whether to ignore warnings reported by Plugin Check. | |
# | |
# Default: false | |
#ignore-warnings: '' | |
# Whether to ignore errors reported by Plugin Check. | |
# | |
# Default: false | |
#ignore-errors: '' | |
# Whether to include experimental checks. | |
# | |
# Default: true | |
#include-experimental: '' | |
# WordPress version to use. Supports "latest" or "trunk". | |
# | |
# Default: latest | |
#wp-version: '' |