From 8821c32ba2366776678d60fbc3955d506c731ac5 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 19 Jan 2023 07:45:15 +1100 Subject: [PATCH] Updated composer cache strategy --- .github/workflows/parallel.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/parallel.yml b/.github/workflows/parallel.yml index d056539ea11b..ddf6caff6778 100644 --- a/.github/workflows/parallel.yml +++ b/.github/workflows/parallel.yml @@ -90,13 +90,16 @@ jobs: run: | cp .env.ci .env - - name: Cache composer 📦 - uses: actions/cache@v2 - id: php-cache # use this to check for `cache-hit` (`steps.php-cache.outputs.cache-hit != 'true'`) + - name: Get Composer Cache Directory + id: composer-cache + run: | + echo "::set-output name=dir::$(composer config cache-files-dir)" + - uses: actions/cache@v2 with: - path: ${{ steps.composercache.outputs.dir }} + path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} - restore-keys: ${{ runner.os }}-${{ matrix.php }}-composer- + restore-keys: | + ${{ runner.os }}-${{ matrix.php }}-composer- # - name: Cache dependencies actions/cache@v3 # uses: actions/cache@v3