From 634736827850a77db6b4d330d7977f5a5ee7a70d Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 29 May 2024 18:41:13 +1000 Subject: [PATCH] Updates for composer cachje --- .github/workflows/phpunit.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 65a80da30b3b..bf9ee75f4f3f 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -92,14 +92,25 @@ jobs: run: | cp .env.ci .env + # - name: Get Composer Cache Directory + # id: composer-cache + # run: | + # echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT + # - uses: actions/cache@v4 + # with: + # path: ${{ steps.composer-cache.outputs.dir }} + # key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} + # restore-keys: | + # ${{ runner.os }}-${{ matrix.php }}-composer- + - name: Get Composer Cache Directory id: composer-cache run: | echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v4 + - uses: actions/cache@v3 with: path: ${{ steps.composer-cache.outputs.dir }} - key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} + key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | ${{ runner.os }}-${{ matrix.php }}-composer-