generated from figuren-theater/new-ft-module
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With the set goal in mind to become a versatile community plugin, _label-printing_ > [...] should at **every time** align with the .org/plugin review standards, at least with the automated part of the review process. > > This is where the [Plugin Check (PCP)](https://wordpress.org/plugins/plugin-check/) WordPress plugin comes into play, because thankfully there is also a [corresponding github action](https://github.com/swissspidy/wp-plugin-check-action). > ### Description of the Change > > [...] we should introduce this action into our default `push` and `pull_request` workflows. This would also be a nice aspect to promote further, saying "We align with the guidelines not only once (like normal), but with every release". > > ~Closes #~ Closes #46 > ### How to test the Change > > I hope to see the test running within this PR, to get a basic testing. > ### Changelog Entry > > > Added - Test against standards for the WordPress.org plugin directory --- Cloned PR from GatherPress/gatherpress#616 --- ### Code Checklist - [x] tested - [ ] documented
- Loading branch information
Showing
4 changed files
with
113 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# A set of files you probably don't want in your WordPress.org distribution | ||
.babelrc | ||
.deployignore | ||
.distignore | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc | ||
.git | ||
.github | ||
.gitignore | ||
.gitlab-ci.yml | ||
.nvmrc | ||
.travis.yml | ||
.DS_Store | ||
assets | ||
src | ||
Thumbs.db | ||
behat.yml | ||
bitbucket-pipelines.yml | ||
bin | ||
.circleci/config.yml | ||
CODE_OF_CONDUCT.md | ||
composer.json | ||
composer.lock | ||
dependencies.yml | ||
Gruntfile.js | ||
package.json | ||
package-lock.json | ||
phpstan.neon | ||
phpunit.xml | ||
phpunit.xml.dist | ||
multisite.xml | ||
multisite.xml.dist | ||
.phpcs.xml | ||
phpcs.xml | ||
.phpcs.xml.dist | ||
phpcs.xml.dist | ||
README.md | ||
webpack.config.js | ||
wp-cli.local.yml | ||
yarn.lock | ||
tests | ||
vendor | ||
node_modules | ||
*.sql | ||
*.tar.gz | ||
*.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: 'WordPress.org plugin directory guidelines' | ||
on: # rebuild any PRs and main branch changes | ||
workflow_dispatch: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
wp-org-plugin-guidelines: | ||
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:dev-main | ||
|
||
- name: Setup Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
# Make sure to use the same version like WordPress/gutenberg. | ||
# node-version-file: '.nvmrc' | ||
node-version: v20.11.1 | ||
cache: npm | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build plugin | ||
run: | | ||
npm run build | ||
wp dist-archive . ./label-printing.zip | ||
mkdir tmp-build | ||
unzip label-printing.zip -d tmp-build | ||
- name: Run plugin check | ||
uses: swissspidy/wp-plugin-check-action@main | ||
with: | ||
build-dir: './tmp-build/label-printing' | ||
wp-version: 'trunk' |
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
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