-
-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (31 loc) · 889 Bytes
/
Copy pathwordpress-plugin-check.yml
File metadata and controls
36 lines (31 loc) · 889 Bytes
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
name: Plugin Check
on:
pull_request:
push:
branches:
- develop
release:
types: [ published ]
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Composer install
uses: shivammathur/setup-php@v2
with:
php-version: latest
coverage: none
tools: wp-cli
- name: Install latest version of dist-archive-command
run: wp package install wp-cli/dist-archive-command:@stable
- name: Build plugin
run: |
wp dist-archive . ./${{ github.event.repository.name }}.zip
mkdir tmp-build
unzip ${{ github.event.repository.name }}.zip -d tmp-build
- name: Run plugin check
uses: wordpress/plugin-check-action@v1
with:
build-dir: ./tmp-build/${{ github.event.repository.name }}