Skip to content

Bump symfony/process from 5.4.40 to 5.4.46 #83

Bump symfony/process from 5.4.40 to 5.4.46

Bump symfony/process from 5.4.40 to 5.4.46 #83

Workflow file for this run

name: CI
on: # yamllint disable-line rule:truthy
workflow_dispatch:
pull_request:
push:
branches:
- "master"
- "develop"
permissions:
contents: "read"
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
run:
runs-on: ubuntu-22.04
strategy:
matrix:
php_versions: [ '8.0', '8.1', '8.2', '8.3' ]
core: [ '6.0', '6.1', '6.2', '6.3', '6.4', '6.5' ]
name: Test PHP ${{ matrix.php_versions }} with WP ${{ matrix.core }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_versions }}
ini-file: development
coverage: none
- name: Override PHP version in composer.json
run: composer config platform.php ${{ matrix.php_versions }}
- name: Composer install
run: composer install -o
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '20.11.*'
cache: npm
- name: Install JS dependencies
run: npm ci
- name: Launch environment
run: WP_ENV_PHP_VERSION=${{ matrix.php_versions }} WP_ENV_CORE=WordPress/WordPress#${{ matrix.core }} npm run env:start-ci
- name: Updates dependencies for tests
run: npm run env run tests-wordpress composer update -- -W --working-dir=/var/www/html/wp-content/plugins/wp-http-blocklist/
- name: Update Yoast dependencies
run: npm run env run tests-wordpress composer update -- --dev yoast/phpunit-polyfills -W --working-dir=/var/www/html/wp-content/plugins/wp-http-blocklist/
- name: Test PHP
run: npm run test:php