Skip to content

Merge pull request #281 from 10up/upkeep/280 #304

Merge pull request #281 from 10up/upkeep/280

Merge pull request #281 from 10up/upkeep/280 #304

Workflow file for this run

name: PHPUnit
on:
push:
branches:
- develop
- trunk
pull_request:
branches:
- develop
paths: # Note: Update paths here will also require updating paths in ignore.phpunit.yml.
- '**.php'
jobs:
phpunit:
runs-on: ubuntu-latest
services:
mysql:
image: mariadb:10.4
env:
MYSQL_ROOT_PASSWORD: root
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10
strategy:
fail-fast: false
matrix:
php-versions: ['7.4', '8.0']
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set PHP version
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
extensions: mysql, imagick
- name: Run PHPUnit
run: ./bin/test.sh