Skip to content

chore: migrate dependabot reviewers to CODEOWNERS #6

chore: migrate dependabot reviewers to CODEOWNERS

chore: migrate dependabot reviewers to CODEOWNERS #6

Workflow file for this run

name: Run PHPUnit
on:
# Prevent the "push" build from running when there are only irrelevant changes.
push:
paths-ignore:
- "**.md"
permissions: {}
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:
include:
# Check lowest supported WP version, with the lowest supported PHP.
- wordpress: '6.4'
php: '7.4'
allowed_failure: false
# Check latest WP release with the highest supported PHP.
- wordpress: '6.8'
php: 'latest'
allowed_failure: false
# Check upcoming WP (master is the development branch).
- wordpress: 'master'
php: 'latest'
allowed_failure: true
# Check upcoming PHP - only needed when a new version has been forked (typically Sep-Nov)
# - wordpress: 'trunk'
# php: 'nightly'
# allowed_failure: true
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- name: Install wordpress environment
run: npm install -g @wordpress/env
- name: Setup PHP ${{ matrix.php }}
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 # 2.36.0
with:
php-version: ${{ matrix.php }}
tools: composer
- name: Install Composer dependencies
uses: ramsey/composer-install@3cf229dc2919194e9e36783941438d17239e8520 # 3.1.1
with:
composer-options: "${{ matrix.composer-options }}"
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${RUNNER_TOOL_CACHE}/php.json"
env:
RUNNER_TOOL_CACHE: ${{ runner.tool_cache }}
- name: Setup Problem Matchers for PHPUnit
run: echo "::add-matcher::${RUNNER_TOOL_CACHE}/phpunit.json"
env:
RUNNER_TOOL_CACHE: ${{ runner.tool_cache }}
- name: Setup wp-env
run: wp-env start
env:
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wordpress }}
- name: Run integration tests (single site)
run: composer test:integration
- name: Run integration tests (multisite)
run: composer test:integration-ms