Skip to content

few update

few update #12

Workflow file for this run

name: 'Plugin Check'
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # Specify the Node.js version you want to use
- name: Install dependencies
run: npm install
- name: Build the project
run: npm run release
- name: Run Plugin Check
uses: wordpress/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: './release/wordpress-plugin-boilerplate/'
# 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: ''
# Whether to ignore warnings reported by Plugin Check.
#
# Default: false
ignore-warnings: false
# Whether to ignore errors reported by Plugin Check.
#
# Default: false
ignore-errors: false
# Whether to include experimental checks.
#
# Default: true
include-experimental: true
# WordPress version to use. Supports "latest" or "trunk".
#
# Default: latest
wp-version: 'latest'