3030 uses :
" shivammathur/[email protected] " 3131 with :
3232 coverage : " xdebug"
33- extensions : " none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
33+ extensions : " none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
3434 php-version : " ${{ matrix.php-version }}"
3535
3636 - name : " Set up problem matchers for PHP"
3939 - name : " Set up problem matchers for phpunit/phpunit"
4040 run : " echo \" ::add-matcher::${{ runner.tool_cache }}/phpunit.json\" "
4141
42+ - name : " Validate composer.json and composer.lock"
43+ run : " composer validate --ansi --strict"
44+
4245 - name : " Determine composer cache directory"
4346 uses :
" ergebnis/.github/actions/composer/[email protected] " 4447
9396 uses :
" shivammathur/[email protected] " 9497 with :
9598 coverage : " none"
96- extensions : " none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
99+ extensions : " none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
97100 php-version : " ${{ matrix.php-version }}"
98101
99102 - name : " Set up problem matchers for PHP"
@@ -121,7 +124,7 @@ jobs:
121124 run : " composer normalize --ansi --dry-run"
122125
123126 - name : " Create cache directory for friendsofphp/php-cs-fixer"
124- run : " mkdir -p .build/php-cs-fixer"
127+ run : " mkdir -p .build/php-cs-fixer/ "
125128
126129 - name : " Cache cache directory for friendsofphp/php-cs-fixer"
127130@@ -156,13 +159,16 @@ jobs:
156159 uses :
" shivammathur/[email protected] " 157160 with :
158161 coverage : " none"
159- extensions : " none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
162+ extensions : " none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
160163 php-version : " ${{ matrix.php-version }}"
161164 tools : " phive"
162165
163166 - name : " Set up problem matchers for PHP"
164167 run : " echo \" ::add-matcher::${{ runner.tool_cache }}/php.json\" "
165168
169+ - name : " Validate composer.json and composer.lock"
170+ run : " composer validate --ansi --strict"
171+
166172 - name : " Determine composer cache directory"
167173 uses :
" ergebnis/.github/actions/composer/[email protected] " 168174
@@ -207,12 +213,15 @@ jobs:
207213 uses :
" shivammathur/[email protected] " 208214 with :
209215 coverage : " none"
210- extensions : " none, ctype, dom, intl, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
216+ extensions : " none, ctype, curl, dom, intl, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
211217 php-version : " ${{ matrix.php-version }}"
212218
213219 - name : " Set up problem matchers for PHP"
214220 run : " echo \" ::add-matcher::${{ runner.tool_cache }}/php.json\" "
215221
222+ - name : " Validate composer.json and composer.lock"
223+ run : " composer validate --ansi --strict"
224+
216225 - name : " Determine composer cache directory"
217226 uses :
" ergebnis/.github/actions/composer/[email protected] " 218227
@@ -229,7 +238,7 @@ jobs:
229238 dependencies : " ${{ matrix.dependencies }}"
230239
231240 - name : " Create cache directory for rector/rector"
232- run : " mkdir -p .build/rector"
241+ run : " mkdir -p .build/rector/ "
233242
234243 - name : " Cache cache directory for rector/rector"
235244@@ -273,6 +282,21 @@ jobs:
273282 - name : " Validate composer.json and composer.lock"
274283 run : " composer validate --ansi --strict"
275284
285+ - name : " Determine composer cache directory"
286+ uses :
" ergebnis/.github/actions/composer/[email protected] " 287+
288+ - name : " Cache dependencies installed with composer"
289+ 290+ with :
291+ path : " ${{ env.COMPOSER_CACHE_DIR }}"
292+ key : " php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }}"
293+ restore-keys : " php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
294+
295+ - name : " Install ${{ matrix.dependencies }} dependencies with composer"
296+ uses :
" ergebnis/.github/actions/composer/[email protected] " 297+ with :
298+ dependencies : " ${{ matrix.dependencies }}"
299+
276300 - name : " Check installed packages for security vulnerability advisories"
277301 run : " composer audit --ansi"
278302
@@ -297,12 +321,15 @@ jobs:
297321 uses :
" shivammathur/[email protected] " 298322 with :
299323 coverage : " none"
300- extensions : " none, ctype, curl, dom, json, mbstring, pcntl, phar, posix, simplexml, tokenizer, xml, xmlwriter"
324+ extensions : " none, ctype, curl, dom, json, mbstring, opcache, pcntl, phar, posix, simplexml, tokenizer, xml, xmlwriter"
301325 php-version : " ${{ matrix.php-version }}"
302326
303327 - name : " Set up problem matchers for PHP"
304328 run : " echo \" ::add-matcher::${{ runner.tool_cache }}/php.json\" "
305329
330+ - name : " Validate composer.json and composer.lock"
331+ run : " composer validate --ansi --strict"
332+
306333 - name : " Determine composer cache directory"
307334 uses :
" ergebnis/.github/actions/composer/[email protected] " 308335
@@ -319,7 +346,7 @@ jobs:
319346 dependencies : " ${{ matrix.dependencies }}"
320347
321348 - name : " Create cache directory for vimeo/psalm"
322- run : " mkdir -p .build/psalm"
349+ run : " mkdir -p .build/psalm/ "
323350
324351 - name : " Run vimeo/psalm"
325352 run : " vendor/bin/psalm --config=psalm.xml --output-format=github --shepherd --show-info=false --stats --threads=4"
@@ -348,7 +375,7 @@ jobs:
348375 uses :
" shivammathur/[email protected] " 349376 with :
350377 coverage : " none"
351- extensions : " none, ctype, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
378+ extensions : " none, ctype, curl, dom, json, mbstring, phar, simplexml, tokenizer, xml, xmlwriter"
352379 php-version : " ${{ matrix.php-version }}"
353380
354381 - name : " Set up problem matchers for PHP"
@@ -357,6 +384,9 @@ jobs:
357384 - name : " Set up problem matchers for phpunit/phpunit"
358385 run : " echo \" ::add-matcher::${{ runner.tool_cache }}/phpunit.json\" "
359386
387+ - name : " Validate composer.json and composer.lock"
388+ run : " composer validate --ansi --strict"
389+
360390 - name : " Determine composer cache directory"
361391 uses :
" ergebnis/.github/actions/composer/[email protected] " 362392
0 commit comments