Skip to content

Commit aae1279

Browse files
Update wordpress-plugin-check.yml
1 parent f8bbe54 commit aae1279

1 file changed

Lines changed: 34 additions & 2 deletions

File tree

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,34 @@
1-
- name: WordPress Plugin Check
2-
uses: WordPress/plugin-check-action@v1
1+
name: WordPress Plugin Check
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build-plugin:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: latest
21+
cache: 'npm'
22+
- run: npm install
23+
- run: npm run build --if-present
24+
25+
26+
plugin-check:
27+
needs: build-plugin
28+
29+
steps:
30+
- name: Checkout
31+
uses: actions/checkout@v4
32+
33+
- name: Run plugin check
34+
uses: wordpress/plugin-check-action@v1

0 commit comments

Comments
 (0)