We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7630d72 commit 566d5cfCopy full SHA for 566d5cf
.github/workflows/reusable-phpunit-tests-v1.yml
@@ -50,6 +50,7 @@ on:
50
type: boolean
51
default: false
52
env:
53
+ COMPOSER_INSTALL: ${{ false }}
54
LOCAL_PHP: ${{ inputs.php }}-fpm
55
LOCAL_PHPUNIT: ${{ inputs.phpunit && inputs.phpunit || inputs.php }}-fpm
56
LOCAL_PHP_MEMCACHED: ${{ inputs.memcached }}
@@ -111,6 +112,11 @@ jobs:
111
112
- name: Build WordPress
113
run: npm run build
114
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
+
120
- name: Cache Composer dependencies
121
if: ${{ env.COMPOSER_INSTALL == true }}
122
uses: actions/cache@6849a6489940f00c2f30c0fb92c6274307ccb58a # v4.1.2
0 commit comments