@@ -104,15 +104,15 @@ runs:
104104 - name : Install dependencies
105105 run : |
106106 echo "::group::Install dependencies"
107- npm ci ${{ inputs.debug != 'true' && '--silent' }}
107+ npm ci ${{ inputs.debug != 'true' && '--silent' || '' }}
108108 echo "::endgroup::"
109109 shell : ' bash'
110110 working-directory : ${{ github.action_path }}/env
111111
112112 - name : Install Playwright browsers
113113 run : |
114114 echo "::group::Install Playwright browsers"
115- npx ${{ inputs.debug != 'true' && '--silent' }} playwright install --with-deps
115+ npx ${{ inputs.debug != 'true' && '--silent' || '' }} playwright install --with-deps
116116 echo "::endgroup::"
117117 if : ${{ inputs.action == 'test' }}
118118 shell : ' bash'
@@ -179,14 +179,12 @@ runs:
179179 ARGS+=(--wp=$WP_VERSION)
180180 ARGS+=(--php=$PHP_VERSION)
181181
182- echo "::group::Start Playground server"
183-
184182 IFS=,
185183 echo "Providing arguments : ${ARGS[*]}"
186184 unset IFS;
187185
186+ echo "Start Playground server..."
188187 ./node_modules/@wp-playground/cli/wp-playground.js server "${ARGS[@]}" &
189- echo "::endgroup::"
190188 env :
191189 PLUGINS : ${{ inputs.plugins }}
192190 THEMES : ${{ inputs.themes }}
@@ -197,7 +195,7 @@ runs:
197195 working-directory : ${{ github.action_path }}/env
198196
199197 - name : Run tests
200- run : npm run ${{ inputs.debug != 'true' && '--silent' }} test:performance $ADDITIONAL_ARGS
198+ run : npm run ${{ inputs.debug != 'true' && '--silent' || '' }} test:performance $ADDITIONAL_ARGS
201199 if : ${{ inputs.action == 'test' }}
202200 env :
203201 WP_BASE_URL : ' http://127.0.0.1:9400'
@@ -213,7 +211,7 @@ runs:
213211 working-directory : ${{ github.action_path }}/env
214212
215213 - name : Stop server
216- run : npm run stop-server
214+ run : npm run ${{ inputs.debug != 'true' && '--silent' || '' }} stop-server
217215 shell : ' bash'
218216 working-directory : ${{ github.action_path }}/env
219217
@@ -226,7 +224,7 @@ runs:
226224 merge-multiple : true
227225
228226 - name : Merge into single performance report
229- run : npm run ${{ inputs.debug != 'true' && '--silent' }} test:performance:merge-reports ${{ steps.download.outputs.download-path }}
227+ run : npm run ${{ inputs.debug != 'true' && '--silent' || '' }} test:performance:merge-reports ${{ steps.download.outputs.download-path }}
230228 if : ${{ inputs.action == 'merge' }}
231229 shell : ' bash'
232230 working-directory : ${{ github.action_path }}/env
@@ -245,9 +243,9 @@ runs:
245243 - name : Log results
246244 run : |
247245 if [ ! -z $PREVIOUS_RESULTS ] && [ -f $PREVIOUS_RESULTS ]; then
248- npm run ${{ inputs.debug != 'true' && '--silent' }} test:performance:results $RESULTS_FILE $PREVIOUS_RESULTS
246+ npm run ${{ inputs.debug != 'true' && '--silent' || '' }} test:performance:results $RESULTS_FILE $PREVIOUS_RESULTS
249247 else
250- npm run ${{ inputs.debug != 'true' && '--silent' }} test:performance:results $RESULTS_FILE
248+ npm run ${{ inputs.debug != 'true' && '--silent' || '' }} test:performance:results $RESULTS_FILE
251249 fi;
252250 if : ${{ inputs.action == 'test' || inputs.action == 'merge' }}
253251 env :
0 commit comments