@@ -16,18 +16,14 @@ jobs:
1616 contents : write
1717 statuses : write
1818
19- outputs :
20- lock : ${{ steps.hash.outputs.lock }}
21- cache : ${{ steps.composer-cache.outputs.cache }}
22-
2319 strategy :
2420 fail-fast : true
2521 matrix :
26- php-versions : [ '8.0', '8.1', '8.2', '8.3' ]
22+ php : [ '8.0', '8.1', '8.2', '8.3' ]
2723 stability : [ 'stable', 'lowest' ]
2824
2925 steps :
30- - uses : actions/checkout@v2
26+ - uses : actions/checkout@v4
3127
3228 - name : Setup PHP
3329 uses : shivammathur/setup-php@v2
4036 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4137
4238 - name : Get composer cache directory
43- id : composer-cache
39+ id : composer-cache-dir
4440 run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
4541
4642 - name : Get composer.lock or composer.json hash for caching
@@ -57,10 +53,10 @@ jobs:
5753 id : composer-cache
5854 uses : actions/cache@v4
5955 with :
60- path : ${{ outputs. cache }}
61- key : ${{ runner.os }}-php-${{ matrix.php }}-${{ outputs.lock }}
56+ path : ${{ steps.composer- cache-dir.outputs.dir }}
57+ key : ${{ runner.os }}-php-${{ matrix.php }}-${{ steps.hash. outputs.lock }}
6258 restore-keys : |
63- ${{ runner.os }}-php-${{ matrix.php }}-${{ outputs.lock }}
59+ ${{ runner.os }}-php-${{ matrix.php }}-${{ steps.hash. outputs.lock }}
6460 ${{ runner.os }}-php-${{ matrix.php }}-
6561 ${{ runner.os }}-php-
6662
0 commit comments