Skip to content

Commit

Permalink
ci: add workflow to run wp plugin checks
Browse files Browse the repository at this point in the history
  • Loading branch information
stklcode committed Oct 4, 2024
1 parent 927b14d commit 47016e5
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Directories
/.github export-ignore
/.wordpress-org export-ignore
/dist export-ignore
/vendor export-ignore

# Files
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/wordpress-plugin-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Plugin check
on:
push:
branches: [ 'master', 'release/*' ]
pull_request:
branches: [ 'master' ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Package plugin
run: |
mkdir -p dist/blacklist-updater
git archive HEAD | tar x --directory=dist/blacklist-updater
- name: Check WP plugin
uses: wordpress/plugin-check-action@v1
with:
build-dir: dist/blacklist-updater
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea/
dist/
vendor/

0 comments on commit 47016e5

Please sign in to comment.