-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.23 KB
/
plugin-check.yml
File metadata and controls
41 lines (33 loc) · 1.23 KB
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
40
41
name: Plugin Check
on:
workflow_dispatch:
jobs:
plugin-check:
name: Plugin Check
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Composer dependencies
run: composer install --no-dev --prefer-dist --no-progress --no-interaction
- name: Install NPM dependencies
run: npm ci --no-audit
- name: Build assets
run: npm run build
- name: Run Plugin Check
uses: WordPress/plugin-check-action@v1
with:
build-dir: '.'
exclude-directories: 'node_modules,vendor,.git,.github,.wordpress-org,.husky,tests'
exclude-files: '.browserslistrc,.distignore,.editorconfig,.eslintignore,.eslintrc.json,.gitignore,.lintstagedrc.json,.npmrc,.nvmrc,.stylelintignore,.stylelintrc,babel.config.js,composer.json,composer.lock,lerna.json,package.json,package-lock.json,phpcs.xml,phpunit.xml,postcss.config.js,webpack.config.js,.gitkeep'