Skip to content

Commit 566d5cf

Browse files
committed
Add a missing step.
1 parent 7630d72 commit 566d5cf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/reusable-phpunit-tests-v1.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ on:
5050
type: boolean
5151
default: false
5252
env:
53+
COMPOSER_INSTALL: ${{ false }}
5354
LOCAL_PHP: ${{ inputs.php }}-fpm
5455
LOCAL_PHPUNIT: ${{ inputs.phpunit && inputs.phpunit || inputs.php }}-fpm
5556
LOCAL_PHP_MEMCACHED: ${{ inputs.memcached }}
@@ -111,6 +112,11 @@ jobs:
111112
- name: Build WordPress
112113
run: npm run build
113114

115+
- name: Get composer cache directory
116+
if: ${{ env.COMPOSER_INSTALL == true }}
117+
id: composer-cache
118+
run: echo composer_dir="$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
119+
114120
- name: Cache Composer dependencies
115121
if: ${{ env.COMPOSER_INSTALL == true }}
116122
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2

0 commit comments

Comments
 (0)