Skip to content

Commit

Permalink
Try to use composer cache.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjerichen committed Jan 30, 2021
1 parent c81a0c1 commit e8f450c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,17 @@ jobs:
- name: Validate composer.json
run: composer validate

- 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@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Dependencies
run: composer update ${DEPENDENCIES}
env:
Expand Down

0 comments on commit e8f450c

Please sign in to comment.