@@ -8,10 +8,10 @@ name: mutation test
8
8
9
9
jobs :
10
10
mutation :
11
- name : PHP ${{ matrix.php}}-${{ matrix.os }}
11
+ name : PHP ${{ matrix.php }}-${{ matrix.os }}
12
12
13
13
env :
14
- extensions : dom, json, libxml, pdo, pdo_sqlite
14
+ extensions : pdo, pdo_sqlite
15
15
16
16
runs-on : ${{ matrix.os }}
17
17
@@ -37,23 +37,22 @@ jobs:
37
37
tools : composer:v2
38
38
39
39
- name : Determine composer cache directory
40
- run : echo "::set-env name= COMPOSER_CACHE_DIR:: $(composer config cache-dir)"
40
+ run : echo "COMPOSER_CACHE_DIR= $(composer config cache-dir)" >> $GITHUB_ENV
41
41
42
42
- name : Cache dependencies installed with composer
43
43
uses : actions/cache@v2
44
44
with :
45
45
path : ${{ env.COMPOSER_CACHE_DIR }}
46
- key : php${{ matrix.php}}-composer-${{ hashFiles('**/composer.json') }}
46
+ key : php${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}
47
47
restore-keys : |
48
- php${{ matrix.php}}-composer-
48
+ php${{ matrix.php }}-composer-
49
49
50
50
- name : Install dependencies with composer
51
51
run : composer update --prefer-dist --no-interaction --no-progress --optimize-autoloader --ansi
52
52
53
- - name : Run test mutation infection with coverage
53
+ - name : Run infection
54
54
run : |
55
- mkdir -p build/logs
56
- vendor/bin/phpunit --coverage-xml=build/logs/coverage-xml --log-junit=build/logs/junit.xml --colors=always
57
- vendor/bin/infection --threads=2 --coverage=build/logs --show-mutations --no-progress
55
+ git fetch --depth=1 origin $GITHUB_BASE_REF
56
+ vendor/bin/infection -j2 --git-diff-filter=A --git-diff-base=origin/$GITHUB_BASE_REF --logger-github --ignore-msi-with-no-mutations --only-covered
58
57
env :
59
58
STRYKER_DASHBOARD_API_KEY : ${{ secrets.STRYKER_DASHBOARD_API_KEY }}
0 commit comments