Skip to content

Commit a8715d6

Browse files
authored
Merge pull request #709 from ProgressPlanner/jdv/plugin-check-action
Add a plugin check action
2 parents d8f506d + 7388b81 commit a8715d6

4 files changed

Lines changed: 56 additions & 9 deletions

File tree

.distignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,28 @@
1-
/.wordpress-org
21
/.git
32
/.github
3+
/.husky
4+
/.vscode
5+
/.wordpress-org
6+
/bin
47
/coverage
58
/tests
69
/vendor
710
.distignore
811
.editorconfig
912
.eslintrc.js
1013
.env.example
11-
.gitignore
14+
.eslintcrc.js
1215
.gitattributes
16+
.gitignore
1317
.php-cs-fixer.dist.php
18+
.stylelintrc.json
1419
composer.json
1520
composer.lock
16-
package.json
1721
package-lock.json
22+
package.json
1823
phpcs.xml.dist
1924
phpstan.neon.dist
2025
phpunit.xml.dist
26+
playwright.config.js
2127
README.md
28+
SECURITY.md

.gitattributes

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
1-
.editorconfig export-ignore
2-
.gitattributes export-ignore
31
.github/* export-ignore
2+
.husky/* export-ignore
3+
.vscode/* export-ignore
4+
.wordpress-org/* export-ignore
5+
bin/* export-ignore
6+
coverage/* export-ignore
47
tests/* export-ignore
8+
.distignore export-ignore
9+
.editorconfig export-ignore
10+
.env.example export-ignore
11+
.eslintcrc.js export-ignore
12+
.gitattributes export-ignore
513
.gitignore export-ignore
14+
.php-cs-fixer.dist.php export-ignore
15+
.stylelintrc.json export-ignore
616
composer.json export-ignore
717
composer.lock export-ignore
818
package.json export-ignore
919
package-lock.json export-ignore
10-
.wordpress-org/* export-ignore
1120
phpcs.xml.dist export-ignore
1221
phpstan.neon.dist export-ignore
1322
phpunit.xml.dist export-ignore
23+
playwright.config.js export-ignore
1424
README.md export-ignore
15-
.wordpress-org/* export-ignore
16-
.vscode/* export-ignore
25+
SECURITY.md export-ignore

.github/workflows/plugin-check.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'WordPress.org Plugin Check'
2+
on: # rebuild any PRs and main branch changes
3+
pull_request:
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v5
11+
12+
- name: Setup PHP
13+
uses: shivammathur/setup-php@v2
14+
with:
15+
php-version: '8.3'
16+
coverage: none
17+
tools: wp-cli
18+
19+
- name: Install latest version of dist-archive-command
20+
run: wp package install wp-cli/dist-archive-command:@stable
21+
22+
- name: Build plugin
23+
run: |
24+
wp dist-archive . ./${{ github.event.repository.name }}.zip
25+
mkdir build
26+
unzip ${{ github.event.repository.name }}.zip -d build
27+
28+
- name: Run plugin check
29+
uses: wordpress/plugin-check-action@v1.0.6
30+
with:
31+
build-dir: './build/${{ github.event.repository.name }}'

readme.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
=== Progress Planner ===
22
Contributors: joostdevalk, aristath, filipi, jonoaldersonwp, mariekerakt, irisguelen, samalderson, tacoverdo
33
Tags: planning, maintenance, writing, blogging
4-
Requires at least: 6.3
4+
Requires at least: 6.6
55
Tested up to: 6.8
66
Requires PHP: 7.4
77
Stable tag: 1.9.0

0 commit comments

Comments
 (0)