14
14
15
15
strategy :
16
16
matrix :
17
- php-versions : ['7.3', '7.4']
17
+ php-versions : ['7.3', '7.4', '8.0' ]
18
18
19
19
runs-on : ubuntu-latest
20
20
29
29
with :
30
30
php-version : ${{ matrix.php-versions }}
31
31
tools : composer, pecl, phpunit
32
- extensions : intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3
32
+ extensions : intl, json, mbstring, gd, mysqlnd, xdebug, xml, sqlite3
33
33
coverage : xdebug
34
34
35
35
- name : Get composer cache directory
@@ -44,28 +44,36 @@ jobs:
44
44
restore-keys : ${{ runner.os }}-composer-
45
45
46
46
- name : Install dependencies
47
- run : composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
47
+ run : composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
48
48
env :
49
49
COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
50
50
51
51
- name : Test with PHPUnit
52
52
run : vendor/bin/phpunit --verbose --coverage-text
53
+ env :
54
+ TERM : xterm-256color
53
55
54
- - if : matrix.php-versions == '7.4 '
55
- name : Run Coveralls
56
+ - if : matrix.php-versions == '8.0 '
57
+ name : Mutate with Infection
56
58
run : |
57
- composer global require php-coveralls/php-coveralls:^2.4
58
- php-coveralls --coverage_clover=build/logs/clover.xml -v
59
+ composer global require infection/infection
60
+ git fetch --depth=1 origin $GITHUB_BASE_REF
61
+ infection --threads=2 --skip-initial-tests --coverage=build/phpunit --git-diff-base=origin/$GITHUB_BASE_REF --git-diff-filter=AM --logger-github --ignore-msi-with-no-mutations
62
+
63
+ - if : matrix.php-versions == '8.0'
64
+ name : Run Coveralls
65
+ run : vendor/bin/php-coveralls --verbose --coverage_clover=build/phpunit/clover.xml --json_path build/phpunit/coveralls-upload.json
59
66
env :
60
67
COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
61
68
COVERALLS_PARALLEL : true
62
- COVERALLS_FLAG_NAME : PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }}
69
+ COVERALLS_FLAG_NAME : PHP ${{ matrix.php-versions }}
63
70
64
71
coveralls :
65
72
needs : [main]
73
+ name : Coveralls Finished
66
74
runs-on : ubuntu-latest
67
75
steps :
68
- - name : Coveralls Finished
76
+ - name : Upload Coveralls results
69
77
uses : coverallsapp/github-action@master
70
78
with :
71
79
github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments