Skip to content

Commit 604d584

Browse files
authored
Merge branch 'develop' into try/playground-action
2 parents eac7f51 + cf1c8f7 commit 604d584

File tree

18 files changed

+1684
-325
lines changed

18 files changed

+1684
-325
lines changed

.github/workflows/plugin-check.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Plugin Check
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- develop
8+
- trunk
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
- ready_for_review
14+
15+
# Cancels all previous workflow runs for pull requests that have not completed.
16+
concurrency:
17+
# The concurrency group contains the workflow name and the branch name for pull requests
18+
# or the commit hash for any other events.
19+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }}
20+
cancel-in-progress: true
21+
22+
# Disable permissions for all available scopes by default.
23+
# Any needed permissions should be configured at the job level.
24+
permissions: {}
25+
26+
jobs:
27+
plugin-check:
28+
name: Run Plugin Check
29+
runs-on: 'ubuntu-24.04'
30+
permissions:
31+
contents: read
32+
timeout-minutes: 20
33+
steps:
34+
- name: Checkout repository
35+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36+
with:
37+
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
38+
persist-credentials: false
39+
40+
- name: Set up PHP
41+
uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 # v2.35.4
42+
with:
43+
php-version: '8.3'
44+
coverage: none
45+
46+
- name: Install Composer dependencies
47+
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # v3.1.1
48+
49+
- name: Setup Node
50+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
51+
with:
52+
cache: 'npm'
53+
node-version-file: '.nvmrc'
54+
55+
- name: Install NPM dependencies
56+
run: npm ci
57+
58+
- name: Build assets
59+
run: npm run build
60+
61+
- name: Run plugin check
62+
uses: wordpress/plugin-check-action@ec9b3fe9beaa76bcc4510b7ba2cb5855a5f80f3f # v1.1.4
63+
with:
64+
wp-version: 'latest'
65+
# Exclude file_type because of the dev files present in the repository.
66+
exclude-checks: |
67+
file_type
68+
exclude-directories: |
69+
.github
70+
docs
71+
tests

composer.json

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
"require-dev": {
1414
"automattic/vipwpcs": "^3.0",
1515
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
16-
"phpcompatibility/php-compatibility": "10.x-dev as 9.99.99",
17-
"phpcompatibility/phpcompatibility-wp": "^2.1",
16+
"phpcompatibility/phpcompatibility-wp": "^3.0.0-alpha",
1817
"phpstan/extension-installer": "^1.3",
1918
"phpstan/phpstan-deprecation-rules": "^2.0.3",
2019
"phpstan/phpstan-phpunit": "^2.0.3",
@@ -24,7 +23,6 @@
2423
"szepeviktor/phpstan-wordpress": "^2.0.2",
2524
"wp-coding-standards/wpcs": "^3.2.0",
2625
"wp-phpunit/wp-phpunit": "^6.5",
27-
"wpackagist-plugin/plugin-check": "^1.6",
2826
"yoast/phpunit-polyfills": "^4.0"
2927
},
3028
"autoload": {
@@ -54,27 +52,6 @@
5452
"php": "7.4"
5553
}
5654
},
57-
"repositories": [
58-
{
59-
"type": "composer",
60-
"url": "https://wpackagist.org",
61-
"only": [
62-
"wpackagist-plugin/*",
63-
"wpackagist-theme/*"
64-
]
65-
},
66-
{
67-
"type": "vcs",
68-
"url": "https://github.com/WordPress/wp-ai-client"
69-
}
70-
],
71-
"extra": {
72-
"installer-paths": {
73-
"vendor/{$vendor}/{$name}/": [
74-
"wpackagist-plugin/plugin-check"
75-
]
76-
}
77-
},
7855
"scripts": {
7956
"format": "phpcbf --standard=phpcs.xml.dist",
8057
"lint": "phpcs --standard=phpcs.xml.dist",

0 commit comments

Comments
 (0)