From 4be1ccbcce0a41d1917b18a999dd380ac9515b87 Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Tue, 16 Mar 2021 10:46:08 +0100 Subject: [PATCH 1/2] Use composer cache --- .github/workflows/tests.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4658c6e9..3a3bc184 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -36,6 +36,19 @@ jobs: run: | php -i | grep -A25 -i "gd support" + - name: Get composer cache directory + id: composer-cache-directory + run: | + composer config cache-dir + echo "::set-output name=dir::$(composer config cache-dir)" + - name: composer cache + uses: actions/cache@v2 + with: + path: ${{ steps.composer-cache-directory.outputs.dir }} + key: php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + php-${{ matrix.php-version }}-composer + - name: Compose setup run: | composer validate From 4a68904f40503232e4b8690fadafe16c36d8c79b Mon Sep 17 00:00:00 2001 From: Maciej Brencz Date: Tue, 16 Mar 2021 10:51:30 +0100 Subject: [PATCH 2/2] matrix.php-versions --- .github/workflows/tests.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3a3bc184..fc3317e3 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -45,9 +45,9 @@ jobs: uses: actions/cache@v2 with: path: ${{ steps.composer-cache-directory.outputs.dir }} - key: php-${{ matrix.php-version }}-composer-${{ hashFiles('**/composer.lock') }} + key: php-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.lock') }} restore-keys: | - php-${{ matrix.php-version }}-composer + php-${{ matrix.php-versions }}-composer - name: Compose setup run: |