diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44458f2..8c6b95a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,11 +33,11 @@ jobs: run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Cache dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json **/composer.lock') }} - restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer- + key: php-${{ matrix.php-versions }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }} + restore-keys: "php-${{ matrix.php-versions }}-composer-${{ matrix.dependencies }}-" - name: Install lowest dependencies if: ${{ matrix.dependencies == 'lowest' }}