-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (31 loc) · 878 Bytes
/
phpunit.yml
File metadata and controls
40 lines (31 loc) · 878 Bytes
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
39
40
name: phpunit tests
on: [push]
jobs:
phpunit-tests:
runs-on: ubuntu-20.04
services:
mysql:
image: mysql:8.0.23
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: root
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup composer cache
uses: actions/cache@v2
with:
path: ~/.composer/cache
key: php-composer-${{ hashFiles('**/composer.json') }}
restore-keys: php-composer-
- name: Set php version to 7.4
uses: shivammathur/setup-php@v2
with:
php-version: "7.4"
- name: Install composer dependencies
run: composer install
- name: Install WordPress
run: ./bin/install-wp-tests.sh frontity_tests root root 127.0.0.1 latest
- name: Run phpunit
run: composer phpunit