ci: add workflow to run wp plugin checks
Some checks failed
CI / unit-test (5.6) (push) Successful in 1m3s
CI / unit-test (7.4) (push) Successful in 59s
CI / unit-test (8.0) (push) Successful in 57s
CI / unit-test (8.1) (push) Successful in 58s
CI / unit-test (8.2) (push) Successful in 1m0s
CI / unit-test (8.3) (push) Successful in 52s
CI / quality (push) Successful in 52s
Plugin check / check (push) Failing after 38s

This commit is contained in:
Stefan Kalscheuer 2024-10-03 14:39:47 +02:00
parent fbb8229c3e
commit 2837e3d9a9
Signed by: stefan
GPG Key ID: 3887EC2A53B55430
3 changed files with 24 additions and 0 deletions

View File

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

1
.gitattributes vendored
View File

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

View File

@ -0,0 +1,21 @@
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
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