Skip to content

Remove unnecessary phpunit versions for WordPress 5.9 #490

Remove unnecessary phpunit versions for WordPress 5.9

Remove unnecessary phpunit versions for WordPress 5.9 #490

Workflow file for this run

name: Integration Tests
on: [push]
jobs:
test:
name: WP ${{ matrix.wordpress }} on PHP ${{ matrix.php }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.allowed_failure }}
env:
WP_VERSION: ${{ matrix.wordpress }}
strategy:
matrix:
wordpress: [ '5.9', '6.5' ]
php: [ '7.4', 'latest' ]
allowed_failure: [ false ]
include:
# Check upcoming WP.
- php: 'latest'
wordpress: 'trunk'
allowed_failure: true
# Check upcoming PHP.
- php: '8.4'
wordpress: 'latest'
allowed_failure: true
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up PHP ${{ matrix.php }}
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: ${{ matrix.extensions }}
ini-values: ${{ matrix.ini-values }}
coverage: ${{ matrix.coverage }}
- name: Install Composer dependencies
uses: ramsey/composer-install@v2
with:
composer-options: --ignore-platform-req=php+
- name: Set up problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
- name: Set up problem matchers for PHPUnit
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
- name: Show PHP and PHPUnit version info
run: |
php --version
./vendor/bin/phpunit --version
- name: Start MySQL service
run: sudo systemctl start mysql.service
- name: Install WordPress environment
run: composer prepare ${{ matrix.wordpress }}
- name: Run integration tests (single site)
run: composer integration
- name: Run integration tests (multisite)
run: composer integration-ms