Skip to content

Don’t close the ES index before updating settings (#4858) #5602

Don’t close the ES index before updating settings (#4858)

Don’t close the ES index before updating settings (#4858) #5602

Workflow file for this run

name: CI
on:
push:
branches:
- develop
- staging
- production
- gh-readonly-queue/**
pull_request:
branches:
- develop
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
unit-tests:
name: "WP ${{ matrix.config.wp }}, multisite: ${{ matrix.config.ms }}, JP: ${{ matrix.config.jp }}, PHP: ${{ matrix.config.php }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
# Jetpack, Single-Site, PHP 7.4
- { wp: 5.8.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 }
- { wp: 5.9.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 }
- { wp: 6.0.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 }
- { wp: 6.1.x, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 }
- { wp: latest, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 }
- { wp: nightly, ms: 'no', jp: 'yes', php: '7.4', phpunit: 7 }
# Jetpack, Multi-Site, PHP 7.4
- { wp: latest, ms: 'yes', jp: 'yes', php: '7.4', phpunit: 7 }
- { wp: nightly, ms: 'yes', jp: 'yes', php: '7.4', phpunit: 7 }
# No Jetpack, WP latest, PHP 7.4
- { wp: latest, ms: 'no', jp: 'no', php: '7.4', phpunit: 7 }
- { wp: latest, ms: 'yes', jp: 'no', php: '7.4', phpunit: 7 }
# PHP 8.0, Jetpack
- { wp: 6.2.x, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' }
- { wp: 6.2.x, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' }
- { wp: latest, ms: 'no', jp: 'yes', php: '8.0', phpunit: '', coverage: 'yes' }
- { wp: latest, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '', coverage: 'yes' }
- { wp: nightly, ms: 'no', jp: 'yes', php: '8.0', phpunit: '' }
- { wp: nightly, ms: 'yes', jp: 'yes', php: '8.0', phpunit: '' }
# PHP 8.1, Jetpack
- { wp: latest, ms: 'no', jp: 'yes', php: '8.1', phpunit: '' }
- { wp: latest, ms: 'yes', jp: 'yes', php: '8.1', phpunit: '' }
# PHP 8.2, Jetpack
- { wp: nightly, ms: 'no', jp: 'yes', php: '8.2', phpunit: '' }
- { wp: nightly, ms: 'yes', jp: 'yes', php: '8.2', phpunit: '' }
# PHP 8.3, Jetpack
- { wp: nightly, ms: 'no', jp: 'yes', php: '8.3', phpunit: '' }
- { wp: nightly, ms: 'yes', jp: 'yes', php: '8.3', phpunit: '' }
services:
mysql:
image: mysql:8
ports:
- "3306:3306"
env:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_INITDB_SKIP_TZINFO: 1
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
MYSQL_DATABASE: wordpress_test
steps:
- name: Check out source code
uses: actions/[email protected]
with:
submodules: recursive
- name: Prepare source code
uses: ./.github/actions/prepare-source
- name: Run tests
uses: ./.github/actions/run-wp-tests
with:
wordpress: ${{ matrix.config.wp }}
multisite: ${{ matrix.config.ms }}
jetpack: ${{ matrix.config.jp }}
php: ${{ matrix.config.php }}
phpunit: ${{ matrix.config.phpunit }}
coverage: ${{ matrix.config.coverage }}