diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 4658c6e9..fc3317e3 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-versions }}-composer-${{ hashFiles('**/composer.lock') }} + restore-keys: | + php-${{ matrix.php-versions }}-composer + - name: Compose setup run: | composer validate