-
-
Notifications
You must be signed in to change notification settings - Fork 112
38 lines (37 loc) · 999 Bytes
/
master.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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