@@ -136,7 +136,6 @@ jobs:
136136 persist-credentials : false
137137
138138 - name : Set up Node.js
139- id : setup-node
140139 uses : actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
141140 background : true
142141 with :
@@ -151,31 +150,33 @@ jobs:
151150 # dependency versions are installed and cached.
152151 # #
153152 - name : Set up PHP
154- id : setup-php
155153 uses : shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
156154 background : true
157155 with :
158156 php-version : ' ${{ inputs.php }}'
159157 coverage : none
160158
159+ - name : Wait for setup steps
160+ wait-all :
161+
161162 # Since Composer dependencies are installed using `composer update` and no lock file is in version control,
162163 # passing a custom cache suffix ensures that the cache is flushed at least once per week.
163164 - name : Install Composer dependencies
164165 uses : ramsey/composer-install@65e4f84970763564f46a70b8a54b90d033b3bdda # 4.0.0
165166 background : true
166- wait : ' setup-php'
167167 with :
168168 custom-cache-suffix : $(/bin/date -u --date='last Mon' "+%F")
169169
170170 - name : Install npm dependencies
171171 background : true
172- wait : ' setup-node'
173172 run : npm ci
174173
174+ - name : Wait for install commands
175+ wait-all :
176+
175177 - name : Build WordPress
176178 run : npm run build:dev
177179 background : true
178- wait-all :
179180
180181 - name : General debug information
181182 run : |
@@ -191,16 +192,16 @@ jobs:
191192 docker -v
192193
193194 - name : Start Docker environment
194- id : start-env
195195 background : true
196196 run : npm run env:start
197197
198+ - name : Wait for build script & Docker environment
199+ wait-all :
200+
198201 - name : Log running Docker containers
199- wait : ' start-env'
200202 run : docker ps -a
201203
202204 - name : WordPress Docker container debug information
203- wait : ' start-env'
204205 run : |
205206 docker compose run --rm mysql "${LOCAL_DB_CMD}" --version
206207 docker compose run --rm php php --version
@@ -211,7 +212,7 @@ jobs:
211212 LOCAL_DB_CMD : ${{ env.LOCAL_DB_TYPE == 'mariadb' && contains( fromJSON('["5.5", "10.0", "10.1", "10.2", "10.3"]'), env.LOCAL_DB_VERSION ) && 'mysql' || env.LOCAL_DB_TYPE }}
212213
213214 - name : Install WordPress
214- wait : ' start-env '
215+ background : true
215216 run : npm run env:install
216217
217218 # Installs PCOV as the code coverage driver for the PHPUnit run below.
@@ -227,6 +228,7 @@ jobs:
227228 # during test warmup. The default of 64 is far too low here.
228229 - name : Install PCOV coverage driver
229230 if : ${{ inputs.coverage-report }}
231+ background : true
230232 run : |
231233 docker compose exec -T -u 0 php sh -c '
232234 pecl install --force pcov-1.0.12 &&
@@ -239,6 +241,9 @@ jobs:
239241 php -m | grep -i pcov
240242 '
241243
244+ - name : Wait for installation steps
245+ wait-all :
246+
242247 - name : Run external HTTP tests
243248 if : ${{ ! inputs.multisite && ! inputs.phpunit-test-groups && ! inputs.coverage-report }}
244249 continue-on-error : ${{ inputs.allow-errors }}
0 commit comments