Repository navigation
50 lines (41 loc) · 1.56 KB
/
Copy pathplugin-check.yml
File metadata and controls
50 lines (41 loc) · 1.56 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
48
49
50
name: WordPress Plugin Checks
on:
push:
branches:
- develop
- trunk
- master
pull_request:
branches:
- develop
permissions:
contents: read
jobs:
build:
uses: ./.github/workflows/build-release-zip.yml
test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Download built zip
uses: actions/download-artifact@b14cf4c92620c250e1c074ab0a5800e37df86765 # v4.2.0
with:
name: ${{ github.event.repository.name }}
path: artifact
- name: Extract built zip
run: |
mkdir -p "${{ github.event.repository.name }}"
unzip -q "artifact/${{ github.event.repository.name }}.zip" -d "${{ github.event.repository.name }}"
- name: Display structure of downloaded files
run: ls -R
working-directory: ${{ github.event.repository.name }}
- name: Run plugin check
uses: wordpress/plugin-check-action@98a1788320d0add90df2d8183934ecccbc4e05d2 # v1.1.7
with:
build-dir: ${{ github.event.repository.name }}
exclude-checks: 'plugin_readme,plugin_updater' # Plugin isn't on .org so excluding these for now.
exclude-directories: 'assets,dist,vendor'
exclude-files: 'includes/Helpers.php,.editorconfig' # Helpers.php: Composer files-autoloaded API; an ABSPATH exit guard would break autoloading outside WordPress. .editorconfig: dev-only file, plugin isn't on .org.
ignore-warnings: true