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
34+ env :
35+ COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3436
3537 - name : Get composer cache directory
3638 id : composer-cache
@@ -43,29 +45,45 @@ jobs:
4345 key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
4446 restore-keys : ${{ runner.os }}-composer-
4547
46- - name : Install dependencies
48+ - name : Install dependencies (limited)
49+ if : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
50+ run : composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
51+
52+ - name : Install dependencies (authenticated)
53+ if : ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
4754 run : composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
4855 env :
4956 COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
5057
58+ - name : Enable Tachycardia
59+ run : echo "TACHYCARDIA_MONITOR_GA=enabled" >> $GITHUB_ENV
60+
5161 - name : Test with PHPUnit
5262 run : vendor/bin/phpunit --verbose --coverage-text
63+ env :
64+ TERM : xterm-256color
5365
54- - if : matrix.php-versions == '7.4 '
55- name : Run Coveralls
66+ - if : matrix.php-versions == '8.0 '
67+ name : Mutate with Infection
5668 run : |
57- composer global require php-coveralls/php-coveralls:^2.4
58- php-coveralls --coverage_clover=build/logs/clover.xml -v
69+ composer global require infection/infection
70+ git fetch --depth=1 origin $GITHUB_BASE_REF
71+ 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
72+
73+ - if : matrix.php-versions == '8.0'
74+ name : Run Coveralls
75+ run : vendor/bin/php-coveralls --verbose --coverage_clover=build/phpunit/clover.xml --json_path build/phpunit/coveralls-upload.json
5976 env :
6077 COVERALLS_REPO_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6178 COVERALLS_PARALLEL : true
62- COVERALLS_FLAG_NAME : PHP ${{ matrix.php-versions }} - ${{ matrix.db-platforms }}
79+ COVERALLS_FLAG_NAME : PHP ${{ matrix.php-versions }}
6380
6481 coveralls :
6582 needs : [main]
83+ name : Coveralls Finished
6684 runs-on : ubuntu-latest
6785 steps :
68- - name : Coveralls Finished
86+ - name : Upload Coveralls results
6987 uses : coverallsapp/github-action@master
7088 with :
7189 github-token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments