From 56b2c3d8c824d583e321ba0cdb3b5c03e7e43cb6 Mon Sep 17 00:00:00 2001 From: Tom Thorogood Date: Tue, 30 Jun 2026 16:37:38 +0930 Subject: [PATCH] Split playwright installation into separate step Previously this was weirdly wedged into the "Build commands list" step which didn't make a lot of sense and attributed the run time in a strange way. --- .github/workflows/node-pr.yml | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node-pr.yml b/.github/workflows/node-pr.yml index 9cdcbb9..54728a1 100644 --- a/.github/workflows/node-pr.yml +++ b/.github/workflows/node-pr.yml @@ -455,6 +455,20 @@ jobs: persist-credentials: false clean: false + - name: Install Playwright + if: >- + inputs.skip-test-storybook == false && + steps.check-test-storybook.outputs.exists == 'true' + run: | + # Ensure playwright dependencies are installed before story blok test execution begins + if [ "${INPUTS_PACKAGE_MANAGER}" = "yarn" ]; then + yarn playwright install --with-deps + else + npx playwright install --with-deps + fi + env: + INPUTS_PACKAGE_MANAGER: ${{ inputs.package-manager }} + - name: Build commands list id: build-commands run: | @@ -470,12 +484,6 @@ jobs: fi if [ "${INPUTS_SKIP_TEST_STORYBOOK}" != "true" ] && \ [ "${STEPS_CHECK_TEST_STORYBOOK_OUTPUTS_EXISTS}" == "true" ]; then - # Ensure playwright dependencies are installed before story blok test execution begins - if [ "${INPUTS_PACKAGE_MANAGER}" = "yarn" ]; then - yarn playwright install --with-deps - else - npx playwright install --with-deps - fi commands+=("${INPUTS_TEST_STORYBOOK_COMMAND}") fi if [ "${INPUTS_SKIP_CHECK_TYPES}" != "true" ] && \ @@ -493,7 +501,6 @@ jobs: STEPS_CHECK_FORMAT_OUTPUTS_EXISTS: ${{ steps.check-format.outputs.exists }} INPUTS_FORMAT_COMMAND: ${{ inputs.format-command }} STEPS_CHECK_TEST_STORYBOOK_OUTPUTS_EXISTS: ${{ steps.check-test-storybook.outputs.exists }} - INPUTS_PACKAGE_MANAGER: ${{ inputs.package-manager }} INPUTS_TEST_STORYBOOK_COMMAND: ${{ inputs.test-storybook-command }} STEPS_CHECK_CHECK_TYPES_OUTPUTS_EXISTS: ${{ steps.check-check-types.outputs.exists }} INPUTS_CHECK_TYPES_COMMAND: ${{ inputs.check-types-command }}