Skip to content

Commit 9411591

Browse files
authored
Add stability to Composer Cache
I'm not 100 sure on this one but I think the Cache dependencies key should include the stability (prefer-lowest or prefer-stable). Otherwise, some of the dependencies in the prefer-lowest build seem to be re-downloaded every time - unless the lowest version matches the stable one. If I'm correct this should increase the speed of every build.
1 parent ab9f4b8 commit 9411591

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/cache@v1
4141
with:
4242
path: ~/.composer/cache/files
43-
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
43+
key: dependencies-php-${{ matrix.php }}-${{ matrix.stability }}-composer-${{ hashFiles('composer.json') }}
4444

4545
- name: Setup PHP
4646
uses: shivammathur/setup-php@v2

0 commit comments

Comments
 (0)