Skip to content

Commit

Permalink
ci(github): add composer caching
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxpiper committed Apr 19, 2020
1 parent 98c7ed1 commit 5d06d6b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Expand Up @@ -25,6 +25,17 @@ jobs:
uses: shivammathur/setup-php@master
with:
php-version: ${{ matrix.php_version }}

- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Setup environment
run: |
Expand Down

0 comments on commit 5d06d6b

Please sign in to comment.