Skip to content

Commit 837b27b

Browse files
committed
cached the composer cache both in rector and auto-regenerate
1 parent 5993e1d commit 837b27b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/rector-continuous-integration.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ jobs:
3131
uses: "shivammathur/setup-php@v2"
3232
with:
3333
php-version: "${{ matrix.php-version }}"
34+
35+
- name: "Cache dependencies installed with composer"
36+
uses: "actions/cache@v1"
37+
with:
38+
path: "~/.composer/cache"
39+
key: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('**/composer.lock') }}"
40+
restore-keys: "php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-"
3441

3542
- name: "Composer install"
3643
run: "composer install && composer rector && composer test"

0 commit comments

Comments
 (0)