Skip to content

Commit ceffcfa

Browse files
committed
ci: add workflow to run wp plugin checks
1 parent f7cd455 commit ceffcfa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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: Setup PHP
15+
uses: shivammathur/setup-php@v2
16+
with:
17+
php-version: '8.2'
18+
tools: composer
19+
20+
- name: Build
21+
run: composer install --no-interaction
22+
23+
- name: Package plugin
24+
run: |
25+
mkdir -p ./dist
26+
rsync -rc --exclude-from=.distignore ./ ./dist/spcl --delete --delete-excluded
27+
28+
- name: Check WP plugin
29+
uses: wordpress/plugin-check-action@v1
30+
with:
31+
build-dir: ./dist/spcl

0 commit comments

Comments
 (0)