Skip to content

Commit

Permalink
[TASK] Add Github workflow caching for composer dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
fnagel committed May 12, 2020
1 parent 5c05263 commit 39c3a92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ jobs:
php-version: ${{ matrix.php-versions }}
extensions: intl, mbstring, pdo_sqlite

- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ~/.composer/cache
key: php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
php-${{ matrix.php-versions }}-typo3-${{ matrix.typo3-versions }}-composer-
php-${{ matrix.php-versions }}-typo3-
- name: Install composer dependencies
run: composer require typo3/minimal "^${{ matrix.typo3-versions }}" --prefer-dist --no-progress --no-suggest

Expand Down

0 comments on commit 39c3a92

Please sign in to comment.