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
+ env :
35
+ COMPOSER_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
36
35
37
- name : Get composer cache directory
36
38
id : composer-cache
@@ -43,11 +45,19 @@ jobs:
43
45
key : ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
44
46
restore-keys : ${{ runner.os }}-composer-
45
47
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 }}
47
54
run : composer update --no-progress --no-interaction --prefer-dist --optimize-autoloader
48
55
env :
49
56
COMPOSER_AUTH : ${{ secrets.COMPOSER_AUTH }}
50
57
58
+ - name : Enable Tachycardia
59
+ run : echo "TACHYCARDIA_MONITOR_GA=enabled" >> $GITHUB_ENV
60
+
51
61
- name : Test with PHPUnit
52
62
run : vendor/bin/phpunit --verbose --coverage-text
53
63
env :
0 commit comments