Skip to content

Commit

Permalink
Merge pull request #12 from elecena/composer-cache
Browse files Browse the repository at this point in the history
Use composer cache
  • Loading branch information
macbre authored Mar 16, 2021
2 parents 351493c + 4a68904 commit f5bced7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f5bced7

Please sign in to comment.