-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'trunk' into add/optimize-oembeds
- Loading branch information
Showing
26 changed files
with
293 additions
and
1,086 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 |
---|---|---|
|
@@ -42,16 +42,38 @@ jobs: | |
name: PHP Integration Tests for Standalone Plugins | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [ '8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0' ] | ||
wp: [ 'latest' ] | ||
include: | ||
- php: '7.4' | ||
wp: '6.3' | ||
- php: '8.3' | ||
wp: 'trunk' | ||
env: | ||
WP_ENV_PHP_VERSION: ${{ matrix.php }} | ||
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wp ) }} | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
- name: Setup Node.js (.nvmrc) | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
- name: npm install | ||
run: npm ci | ||
- name: General debug information | ||
run: | | ||
npm --version | ||
node --version | ||
composer --version | ||
php -v | ||
- name: Building standalone plugins | ||
run: npm run build-plugins | ||
- name: Running single site standalone plugin integration tests | ||
|
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 |
---|---|---|
|
@@ -39,9 +39,22 @@ on: | |
|
||
jobs: | ||
php-test: | ||
name: PHP | ||
name: "PHP ${{ matrix.php }} / WP ${{ matrix.wp }}" | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: ['8.2', '8.1', '8.0', '7.4', '7.3', '7.2', '7.1', '7.0'] | ||
wp: [ 'latest' ] | ||
include: | ||
- php: '7.4' | ||
wp: '6.3' | ||
- php: '8.3' | ||
wp: 'trunk' | ||
env: | ||
WP_ENV_PHP_VERSION: ${{ matrix.php }} | ||
WP_ENV_CORE: ${{ matrix.wp == 'trunk' && 'WordPress/WordPress' || format( 'https://wordpress.org/wordpress-{0}.zip', matrix.wp ) }} | ||
steps: | ||
- uses: styfle/[email protected] | ||
- uses: actions/checkout@v3 | ||
|
@@ -50,6 +63,8 @@ jobs: | |
with: | ||
node-version-file: '.nvmrc' | ||
cache: npm | ||
- name: Composer update | ||
run: composer update | ||
- name: npm install | ||
run: npm ci | ||
- name: Install WordPress | ||
|
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
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 |
---|---|---|
|
@@ -5,8 +5,7 @@ | |
"tests": { | ||
"config": { | ||
"FS_METHOD": "direct" | ||
}, | ||
"phpVersion": "7.4" | ||
} | ||
} | ||
} | ||
} |
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
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,20 @@ | ||
{ | ||
"require-dev": { | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7", | ||
"phpcompatibility/php-compatibility": "^9.3", | ||
"phpstan/extension-installer": "^1.3.0", | ||
"phpstan/phpstan": "^1.10", | ||
"phpstan/phpstan-deprecation-rules": "^1.1", | ||
"phpstan/phpstan-phpunit": "^1.3", | ||
"slevomat/coding-standard": "^8.0", | ||
"squizlabs/php_codesniffer": "^3.5", | ||
"szepeviktor/phpstan-wordpress": "^1.3.0", | ||
"wp-coding-standards/wpcs": "^3.0.0" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"dealerdirect/phpcodesniffer-composer-installer": true, | ||
"phpstan/extension-installer": true | ||
} | ||
} | ||
} |
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
Oops, something went wrong.