-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (35 loc) · 1.06 KB
/
plugin-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: 'build-test'
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Prepare Plugin Files
run: |
mkdir plugin-package
rsync -av --exclude='.*' \
--exclude='node_modules' \
--exclude='tests' \
--exclude='docs' \
--exclude='package.json' \
--exclude='package-lock.json' \
--exclude='webpack.config.js' \
--exclude='README.md' \
--exclude='composer.json' \
--exclude='composer.lock' \
--exclude='phpunit.xml' \
--exclude='phpcs.xml' \
--exclude='.git*' \
. plugin-package/
- name: WordPress Plugin Check
uses: WordPress/plugin-check-action@v1
env:
PLUGIN_DIR: ${{ github.workspace }}/plugin-package