Skip to content

Fix PHP 8.2 deprecation notices #157

Fix PHP 8.2 deprecation notices

Fix PHP 8.2 deprecation notices #157

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
run:
runs-on: ubuntu-latest
env:
WP_TESTS_DIR: /tmp/wordpress-tests-lib
strategy:
matrix:
php-versions: ['7.4', '8.2']
services:
mysql:
image: mysql:8.0
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
ini-values: post_max_size=256M, max_execution_time=180
coverage: xdebug
tools: phpunit:9, phpunit-polyfills
extensions: mysql
- name: Install WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root '' 127.0.0.1:3306 trunk
- name: Run tests
run: phpunit