Add composer package cache in CI

This commit is contained in:
Christopher C. Wells 2021-03-28 15:10:34 -07:00 committed by Christopher Charbonneau Wells
parent 872528b47f
commit 54e32a9805
1 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,15 @@ jobs:
php-version: '8.0'
coverage: xdebug
- uses: actions/checkout@v2
- name: Get composer cache directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install dependencies
run: composer install --no-progress --no-interaction
- name: Generate app key