Fix deprecation notices caused by tag_escape #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.0'] | |
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-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 |