ci: add workflow to run wp plugin checks
All checks were successful
CI / unit-test (5.6) (push) Successful in 1m4s
CI / unit-test (8.1) (push) Successful in 1m0s
CI / unit-test (7.4) (push) Successful in 1m3s
CI / unit-test (8.0) (push) Successful in 1m2s
CI / unit-test (8.2) (push) Successful in 1m3s
CI / unit-test (8.3) (push) Successful in 51s
CI / quality (push) Successful in 54s

This commit is contained in:
Stefan Kalscheuer 2024-10-03 14:39:47 +02:00
parent 96214d55a0
commit 96cd17c3e2
Signed by: stefan
GPG Key ID: 3887EC2A53B55430
3 changed files with 25 additions and 0 deletions

View File

@ -1,7 +1,9 @@
/.git /.git
/.github /.github
/assets /assets
/dist
/test /test
/vendor
/.distignore /.distignore
/.editorconfig /.editorconfig
/.gitattributes /.gitattributes

1
.gitattributes vendored
View File

@ -1,5 +1,6 @@
/.github export-ignore /.github export-ignore
/assets export-ignore /assets export-ignore
/dist export-ignore
/test export-ignore /test export-ignore
.distignore export-ignore .distignore export-ignore
.gitattributes export-ignore .gitattributes export-ignore

View File

@ -0,0 +1,22 @@
name: Plugin check
on:
push:
branches: [ stable', 'release/*' ]
pull_request:
branches: [ stable ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Package plugin
run: |
mkdir -p ./dist
tail -n +6 README.md > README.md.tmp && mv README.md.tmp README.md
rsync -rc --exclude-from=.distignore ./ ./dist/statify-blacklist --delete --delete-excluded
- name: Check WP plugin
uses: wordpress/plugin-check-action@v1
with:
build-dir: ./dist/statify-blacklist