File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -26,18 +26,16 @@ jobs:
26
26
php-version : ${{ matrix.php-versions }}
27
27
- name : Validate composer.json and composer.lock
28
28
run : composer validate --strict
29
- - name : Get Composer Cache Directory
30
- id : composer-cache
31
- run : |
32
- echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
33
29
- name : Cache Composer packages
30
+ id : composer-cache
34
31
uses : actions/cache@v4
35
32
with :
36
- path : ${{ steps.composer-cache.outputs.dir }}
33
+ path : vendor
37
34
key : ${{ runner.os }}-${{ matrix.php-versions }}-${{ hashFiles('**/composer.lock') }}
38
35
restore-keys : |
39
36
${{ runner.os }}-${{ matrix.php-versions }}-
40
37
- name : Install dependencies
41
- run : composer install --prefer-dist --no-progress
38
+ if : steps.composer-cache.outputs.cache-hit != 'true' # Skip if cache hit
39
+ run : composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
42
40
- name : Run test suite
43
41
run : composer run-script test
You can’t perform that action at this time.
0 commit comments