From 39c3a924f769dcbbb12c57a07a486b3883d6dc92 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Tue, 12 May 2020 09:29:41 +0200 Subject: [PATCH] [TASK] Add Github workflow caching for composer dependencies --- .github/workflows/test.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5423a15..024c116 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,15 @@ jobs: php-version: ${{ matrix.php-versions }} extensions: intl, mbstring, pdo_sqlite + - name: Cache composer dependencies + uses: actions/cache@v1 + with: + path: ~/.composer/cache + key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}-composer-${{ hashFiles('composer.json') }} + restore-keys: | + php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}-composer- + php-${{ matrix.php-versions }}-typo3- + - name: Install composer dependencies run: composer require typo3/minimal "^${{ matrix.typo3-versions }}" --prefer-dist --no-progress --no-suggest