Merge pull request #281 from 10up/upkeep/280 #304
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: 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 |