-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (34 loc) · 1.03 KB
/
plugin-check.yml
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
name: Plugin Check
on:
push:
branches:
- main
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
plugin-check:
name: PHP ${{ matrix.php }} - WP ${{ matrix.wordpress }}
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: true
matrix:
php:
- '8.3' # Currently the wordpress/plugin-check-action always uses the latest PHP version anyway.
wordpress: [ 'latest' ] # Currently the wordpress/plugin-check-action only supports 'latest' or 'trunk'.
steps:
- uses: styfle/[email protected]
- uses: actions/checkout@v4
- name: Run plugin check
uses: wordpress/plugin-check-action@v1
with:
wp-version: ${{ matrix.wordpress }}
exclude-checks: 'file_type' # Exclude file_type because of the dev files present in the repository.