Skip to content

Commit b940f93

Browse files
committed
chore(tests): add composer cache for build process
1 parent 4b78594 commit b940f93

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: .github/workflows/php-package.yml

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ jobs:
3838
php-version: ${{ matrix.php-version }}
3939
tools: composer:v2
4040
coverage: xdebug3
41+
- name: Composer Cache
42+
id: composer-cache
43+
run: |
44+
echo "cache_directory=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
45+
- uses: actions/cache@v4
46+
with:
47+
path: ${{ steps.composer-cache.outputs.cache_directory }}
48+
key: ${{ runner.os }}-composer
4149
- run: composer install
4250
shell: bash
4351
- run: composer test

0 commit comments

Comments
 (0)