Skip to content

Updating min required versions constants #6236

Updating min required versions constants

Updating min required versions constants #6236

Workflow file for this run

name: PHP tests
on:
pull_request
jobs:
test:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
max-parallel: 10
matrix:
woocommerce_support_policy: [ 'L', 'L-1', 'L-2' ]
wordpress_support_policy: [ 'L', 'L-1', 'L-2' ]
php_support_policy: [ 'L', 'L-1', 'L-2' ]
include:
# WooCommerce
- woocommerce_support_policy: L
woocommerce: '9.5.2'
- woocommerce_support_policy: L-1
woocommerce: '9.3.4'
- woocommerce_support_policy: L-2
woocommerce: '9.2.3'
# WordPress
- wordpress_support_policy: L
wordpress: '6.7'
- wordpress_support_policy: L-1
wordpress: '6.6'
- wordpress_support_policy: L-2
wordpress: '6.5'
# PHP
- php_support_policy: L
php: '8.1'
- php_support_policy: L-1
php: '8.0'
- php_support_policy: L-2
php: '7.4'
exclude: # incompatible versions
- woocommerce_support_policy: L
woocommerce: '9.5.2'

Check failure on line 40 in .github/workflows/php-tests.yml

View workflow run for this annotation

GitHub Actions / PHP tests

Invalid workflow file

The workflow is not valid. .github/workflows/php-tests.yml (Line: 40, Col: 13): Matrix exclude key 'woocommerce' does not match any key within the matrix .github/workflows/php-tests.yml (Line: 42, Col: 13): Matrix exclude key 'wordpress' does not match any key within the matrix
wordpress_support_policy: L-2
wordpress: '6.5'
name: Stable (PHP=${{ matrix.php_support_policy }}, WP=${{ matrix.wordpress_support_policy }}, WC=${{ matrix.woocommerce_support_policy }})
env:
PHP_VERSION: ${{ matrix.php }}
WP_VERSION: ${{ matrix.wordpress }}
WC_VERSION: ${{ matrix.woocommerce }}
steps:
- name: Testing with PHP=${{ matrix.php }}, WP=${{ matrix.wordpress }}, WC=${{ matrix.woocommerce }}
uses: actions/checkout@v2
- name: Set up dependencies caching
uses: actions/cache@v4
with:
path: ~/.cache/composer/
key: ${{ runner.os }}-composer-${{ hashFiles('composer.lock') }}
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: xdebug
- name: If PHP >= 8.0 set up PHPUnit 9.5 for compatibility
if: ${{ matrix.php >= '8.0' }}
run: wget https://phar.phpunit.de/phpunit-9.5.28.phar && mv phpunit-9.5.28.phar phpunit.phar
- name: Run CI checks
run: bash bin/run-ci-tests.bash