Skip to content

Update plugin-infrastructure. #651

Update plugin-infrastructure.

Update plugin-infrastructure. #651

# yaml-language-server: $schema=https://json.schemastore.org/github-workflow
name: Acceptance Tests
on:
push:
branches:
- 'develop'
- 'trunk'
paths:
- '.github/workflows/acceptance-tests.yml'
- 'tests/acceptance/**'
- '**.css'
- '**.js'
- 'src/**'
- 'wp-crontrol.php'
- 'composer.json'
- 'docker-compose.yml'
- 'tsconfig.json'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/acceptance-tests.yml'
- 'tests/acceptance/**'
- '**.css'
- '**.js'
- 'src/**'
- 'wp-crontrol.php'
- 'composer.json'
- 'docker-compose.yml'
- 'tsconfig.json'
workflow_dispatch:
permissions: {}
jobs:
test:
name: WP ${{ matrix.wp }}
permissions:
contents: read
strategy:
# See the following for PHP compatibility of WordPress versions:
# https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/
matrix:
include:
# Latest:
- wp: '7.0'
php: '8.5'
- wp: '7.0'
php: '7.4'
# Latest -1:
- wp: '6.9'
php: '8.5'
- wp: '6.9'
php: '7.4'
# Latest -2:
- wp: '6.8'
php: '8.4'
- wp: '6.8'
php: '7.4'
# Oldest supported:
- wp: '6.5'
php: '8.3'
- wp: '6.5'
php: '7.4'
fail-fast: false
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-acceptance-tests.yml@421ec23e794b78219ce254911ba95410df855fc9 # 2.9.5
with:
node: false
php: ${{ matrix.php }}
wp: ${{ matrix.wp }}