Skip to content

Use php 8.0 for tools, test code on 8.0 and more #71

Use php 8.0 for tools, test code on 8.0 and more

Use php 8.0 for tools, test code on 8.0 and more #71

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
run:
runs-on: ${{ matrix.operating-system }}
services:
mysql:
image: mysql:5.7
env:
MYSQL_ALLOW_EMPTY_PASSWORD: false
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress_test
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '8.0', '8.1', '8.2', '8.3' ]
wp: [ '5.4', '5.5', '5.6', '5.7', '5.8', '5.9', '6.0', '6.1', '6.2', '6.3', '6.4', '6.5', '6.6', 'latest' ]
name: PHP ${{ matrix.php-versions }} Test on ${{ matrix.operating-system }} with WP ${{ matrix.wp }}
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug #optional, setup coverage driver
tools: psalm, phpcbf, phpcs, phpunit:5.7.27
- name: Install all depenencies
run: composer update
- name: Install WP Tests
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 ${{ matrix.wp }} true
- name: phpunit tests
run: phpunit