Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e4e12b7

Browse files
committed
fix: Use php_versions and not php-versions to get the right
1 parent 0cf1552 commit e4e12b7

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

‎.github/workflows/ci.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ jobs:
2020
runs-on: ubuntu-22.04
2121
strategy:
2222
matrix:
23-
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
23+
php_versions: [ '8.0', '8.1', '8.2', '8.3' ]
2424
core: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', 'latest' ]
25-
name: Test PHP ${{ matrix.php-versions }} with WP ${{ matrix.core }}
25+
name: Test PHP ${{ matrix.php_versions }} with WP ${{ matrix.core }}
2626
steps:
2727
- name: Checkout
2828
uses: actions/checkout@v1
2929

3030
- name: Set up PHP
3131
uses: shivammathur/setup-php@v2
3232
with:
33-
php-version: ${{ matrix.php_version }}
33+
php-version: ${{ matrix.php_versions }}
3434
ini-file: development
3535
coverage: none
3636

3737
- name: Override PHP version in composer.json
38-
run: composer config platform.php ${{ matrix.php_version }}
38+
run: composer config platform.php ${{ matrix.php_versions }}
3939

4040
- name: Composer install
4141
run: composer install -o
@@ -50,7 +50,7 @@ jobs:
5050
run: npm ci
5151

5252
- name: Launch environment
53-
run: WP_ENV_PHP_VERSION=${{ matrix.php_version }} WP_ENV_CORE=WordPress/WordPress#${{ matrix.core }} npm run env:start-ci
53+
run: WP_ENV_PHP_VERSION=${{ matrix.php_versions }} WP_ENV_CORE=WordPress/WordPress#${{ matrix.core }} npm run env:start-ci
5454

5555
- name: Updates dependencies for tests
5656
run: npm run env run tests-wordpress composer update -- -W --working-dir=/var/www/html/wp-content/plugins/wp-http-blocklist/

‎composer.json‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"psalm": "./vendor/bin/psalm"
3333
},
3434
"config": {
35+
"optimize-autoloader": true,
36+
"preferred-install": "dist",
37+
"sort-packages": true,
3538
"allow-plugins": {
3639
"composer/installers": true,
3740
"dealerdirect/phpcodesniffer-composer-installer": true,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /