-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (44 loc) · 1.52 KB
/
Copy pathplugin-check.yml
File metadata and controls
47 lines (44 loc) · 1.52 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
42
43
44
45
46
47
name: Plugin Check
# Runs the official WordPress.org Plugin Check against the plugin, the same tool
# the directory reviewers use. Runs on every push and pull request, and again as
# a gate in front of the deploy workflow so a release cannot go out with an error
# the directory would reject.
#
# Errors fail the run; warnings are reported as annotations without failing it.
on:
push:
branches: [main]
pull_request:
workflow_call:
workflow_dispatch:
jobs:
plugin-check:
name: WordPress.org Plugin Check
runs-on: ubuntu-latest
steps:
# Checked out under the plugin slug: the action derives the plugin folder
# name from this directory, and a folder that does not match the slug
# trips the directory's own naming checks.
- name: Checkout
uses: actions/checkout@v6
with:
path: captchaapi
# The check runs against the repository, but the zip is built with
# .distignore applied. Without these, every run reports development files
# that never ship - and three standing warnings are how a real one gets
# overlooked. Keep this list in step with .distignore.
- name: Run Plugin Check
uses: WordPress/plugin-check-action@v1.1.7
with:
build-dir: ./captchaapi
slug: captchaapi
exclude-directories: |
.github
.githooks
.wordpress-org
tools
languages/.build
exclude-files: |
.gitignore
.distignore
README.md