From 677011017b983e63fb148a7f665763a7d4e7dbcc Mon Sep 17 00:00:00 2001 From: Casper Bakker Date: Mon, 11 Nov 2024 12:37:23 +0100 Subject: [PATCH] Fix cache in tests --- .github/workflows/tests.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index b8ceac2..e1fcef8 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -15,16 +15,14 @@ jobs: with: php-version: ${{ matrix.php-versions }} - - name: Get composer cache directory + - name: Cache Composer packages id: composer-cache - run: echo "::set-output name=dir::$(composer config cache-files-dir)" - - - name: Cache dependencies uses: actions/cache@v4 with: - path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-composer- + path: vendor + key: composer-cache-${{ hashFiles('**/composer.lock') }} + restore-keys: | + composer-cache- - name: Install dependencies run: composer install --prefer-dist