-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (59 loc) · 1.87 KB
/
Mutation.yaml
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Infection Mutation Testing (Stryker)
on:
push:
branches: [ master, develop, feature/v2-sandbox ]
pull_request:
branches: [ master, develop, feature/v2-sandbox ]
jobs:
build:
strategy:
matrix:
operating-system: [ubuntu-latest]
php-versions: [ '7.4']
runs-on: ${{ matrix.operating-system }}
services:
# Setup MYSQL
mysql-service:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: 'crab'
MYSQL_DATABASE: pc_core_tests
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 }}
extensions: mbstring, intl, pcov
ini-values: post_max_size=256M, log_errors=1
tools: pecl
- name: Check PHP Version
run: php -v
- name: Clear existing composer
run: >
sudo rm -rf vendor
&& rm -rf composer.lock
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
run: >
rm -rf composer.lock
&& composer clearcache
&& composer require infection/infection
&& composer require php-stubs/wordpress-stubs:6.4.* --dev --no-update
&& composer require roots/wordpress:6.4.* --dev --no-update
&& composer require wp-phpunit/wp-phpunit:6.4.* --dev --no-update
&& composer update --no-cache
- name: Run Infection on WP6.4
env:
environment_github: true
STRYKER_DASHBOARD_API_KEY: ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
run: composer mutation