Skip to content

Commit

Permalink
[TASK] Add composer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
brotkrueml committed Oct 25, 2020
1 parent 0bda870 commit 2fd8716
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Expand Up @@ -31,6 +31,16 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
extensions: mbstring
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Cache composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-
- name: Install composer dependencies
run: |
composer --version
Expand Down

0 comments on commit 2fd8716

Please sign in to comment.