-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Plugin Check GitHub workflow.
- Loading branch information
1 parent
32ec12f
commit 0044eab
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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/cancel-workflow-action@0.12.1 | ||
|
||
- 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. |