Skip to content

Commit 5570f26

Browse files
committed
ci: add composer dependency caching
1 parent 7e5a8a3 commit 5570f26

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/cron.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31+
- name: Get Composer cache directory
32+
id: composer-cache
33+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
34+
35+
- name: Cache Composer dependencies
36+
uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809
37+
with:
38+
path: ${{ steps.composer-cache.outputs.dir }}
39+
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
40+
restore-keys: |
41+
${{ runner.os }}-php-
42+
3143
- name: Install base dependencies (without scraper)
3244
run: |
3345
composer remove bvp/scraper --no-update || true

0 commit comments

Comments
 (0)