1414
1515 strategy :
1616 matrix :
17- php-versions : ['7.3', '7.4']
17+ php-versions : ['7.3', '7.4', '8.0' ]
1818
1919 runs-on : ubuntu-latest
2020
2929 with :
3030 php-version : ${{ matrix.php-versions }}
3131 tools : composer, pecl, phpunit
32- extensions : intl, json, mbstring, mysqlnd, xdebug, xml, sqlite3
32+ extensions : intl, json, mbstring, gd, mysqlnd, xdebug, xml, sqlite3
3333 coverage : xdebug
3434
3535 - name : Get composer cache directory
@@ -44,28 +44,36 @@ jobs:
4444 restore-keys : ${{ runner.os }}-composer-
4545
4646 - 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
4848 env :
4949 COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
5050
5151 - name : Test with PHPUnit
5252 run : vendor/bin/phpunit --verbose --coverage-text
53+ env :
54+ TERM : xterm-256color
5355
54- - if : matrix.php-versions == '7.4 '
55- name : Run Coveralls
56+ - if : matrix.php-versions == '8.0 '
57+ name : Mutate with Infection
5658 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
5966 env :
6067 COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6168 COVERALLS_PARALLEL : true
62- COVERALLS_FLAG_NAME : PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }}
69+ COVERALLS_FLAG_NAME : PHP ${{ matrix.php-versions }}
6370
6471 coveralls :
6572 needs : [main]
73+ name : Coveralls Finished
6674 runs-on : ubuntu-latest
6775 steps :
68- - name : Coveralls Finished
76+ - name : Upload Coveralls results
6977 uses : coverallsapp/github-action@master
7078 with :
7179 github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments