Skip to content

Commit 1fb5232

Browse files
committed
feat(github): php cache
1 parent 77a00d8 commit 1fb5232

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/reusable-php-checks.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,18 @@ jobs:
8686
extensions: imagick sockets, bcmath, zip, xml, intl, gmp, pgsql, pcntl, event
8787
php-version: '8.1'
8888

89+
- name: Get Composer Cache Directory
90+
id: composer-cache
91+
run: |
92+
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
93+
94+
- uses: actions/cache@v4
95+
with:
96+
path: ${{ steps.composer-cache.outputs.dir }}
97+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
98+
restore-keys: |
99+
${{ runner.os }}-composer-
100+
89101
- name: Install dependencies
90102
if: steps.changed_packages.outputs.packages != ''
91103
run: composer install --prefer-dist --no-progress --no-suggest

0 commit comments

Comments
 (0)