Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add plugin check action #36

Open
wants to merge 14 commits into
base: trunk
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

# Files
.distignore
.gitignore
.wp-env.json
composer.json
package.json
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/wp-plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: WP Plugin Check
on: # rebuild any PRs and main branch changes
pull_request:
push:
branches:
- trunk

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: latest
coverage: none
tools: wp-cli

- name: Install latest version of dist-archive-command
run: wp package install wp-cli/dist-archive-command:@stable

- name: Build plugin
run: |
wp dist-archive . ./wp-approve-user.zip
mkdir tmp-build
unzip wp-approve-user.zip -d tmp-build

- name: Run plugin check
uses: wordpress/[email protected]
with:
build-dir: './tmp-build/wp-approve-user'
7 changes: 4 additions & 3 deletions readme.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
=== WP Approve User ===

Check warning on line 1 in readme.txt

View workflow job for this annotation

GitHub Actions / test

trademarked_term

The plugin name includes a restricted term. Your chosen plugin name - "WP Approve User" - contains the restricted term "wp" and cannot be used to begin your plugin name. We disallow the use of certain terms in ways that are abused, or potentially infringe on and/or are misleading with regards to trademarks. You may use the term "wp" elsewhere in your plugin name, such as "... for wp".

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regarding the The plugin name includes a restricted term warning here, you can safely skip the trademarks check using the exclude-checks option while WordPress/plugin-check#464 is being worked on.

Contributors: obenland
Tags: admin, user, login, approve, user management, plugin
Tags: admin, user, login, approve, user management
License: GPLv2
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=G65Y5CM3HVRNY
Requires at least: 4.7
Tested up to: 6.4
Stable tag: 11
Tested up to: 6.6
Stable tag: 12

Adds action links to user table to approve or unapprove user registrations.

Expand Down
Loading