Skip to content

Test with johnbillion/plugin-infrastructure@permissions #348

Test with johnbillion/plugin-infrastructure@permissions

Test with johnbillion/plugin-infrastructure@permissions #348

# 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/**'
- '**.css'
- '**.js'
- '**.php'
- 'codeception.dist.yml'
- 'composer.json'
- 'docker-compose.yml'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/acceptance-tests.yml'
- 'tests/**'
- '**.css'
- '**.js'
- '**.php'
- 'codeception.dist.yml'
- 'composer.json'
- 'docker-compose.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: WP ${{ matrix.wp }}
strategy:
# See the following for PHP compatibility of WordPress versions:
# https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/
matrix:
wp:
# Latest three stable:
- '6.7'
- '6.6'
- '6.5'
php:
- '8.3'
- '7.4'
include:
# Latest stable on PHP 8.4:
- wp: '6.7'
php: '8.4'
# Oldest supported on PHP 7.4:
- wp: '5.9'
php: '7.4'
fail-fast: false
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-acceptance-tests.yml@31e09639548680cb305fe873abf8745cdeef18b5
with:
node: false
php: ${{ matrix.php }}
wp: ${{ matrix.wp }}