Skip to content

Commit 96cd17c

Browse files
committed
ci: add workflow to run wp plugin checks
1 parent 96214d5 commit 96cd17c

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

.distignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
/.git
22
/.github
33
/assets
4+
/dist
45
/test
6+
/vendor
57
/.distignore
68
/.editorconfig
79
/.gitattributes

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/.github export-ignore
22
/assets export-ignore
3+
/dist export-ignore
34
/test export-ignore
45
.distignore export-ignore
56
.gitattributes export-ignore
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Plugin check
2+
on:
3+
push:
4+
branches: [ stable', 'release/*' ]
5+
pull_request:
6+
branches: [ stable ]
7+
jobs:
8+
check:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Package plugin
15+
run: |
16+
mkdir -p ./dist
17+
tail -n +6 README.md > README.md.tmp && mv README.md.tmp README.md
18+
rsync -rc --exclude-from=.distignore ./ ./dist/statify-blacklist --delete --delete-excluded
19+
- name: Check WP plugin
20+
uses: wordpress/plugin-check-action@v1
21+
with:
22+
build-dir: ./dist/statify-blacklist

0 commit comments

Comments
 (0)