diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index a4ebf71e3..da7366ada 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -88,20 +88,28 @@ jobs: - name: Install Playwright Browsers if: steps.playwright-cache.outputs.cache-hit != 'true' run: npx playwright install --with-deps + + - name: Build Changed Workspaces + env: + STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES: ${{ steps.get_workspaces.outputs.changed_workspaces }} + # Projects to exclude: + EXCLUDED_SAMPLES: "react-ui-kit-search-nearby react-ui-kit-search-text" run: | - IFS=$'\n' - CHANGED_WORKSPACES_ARRAY=(${STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES}) + IFS=$'\n' CHANGED_WORKSPACES_ARRAY=(${STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES}) echo "Changed Workspaces Array: ${CHANGED_WORKSPACES_ARRAY[@]}" - echo "Building changed workspaces:" for workspace in "${CHANGED_WORKSPACES_ARRAY[@]}"; do - echo " - samples/$workspace" + # Check if the current workspace is in the excluded list + if [[ " $EXCLUDED_SAMPLES " == *" $workspace "* ]]; then + echo " - Skipping excluded workspace: samples/$workspace" + continue + fi + + echo " - samples/$workspace" npm run build --workspace=samples/$workspace done - env: - STEPS_GET_WORKSPACES_OUTPUTS_CHANGED_WORKSPACES: ${{ steps.get_workspaces.outputs.changed_workspaces }} - name: Generate Index (Run Once After Builds) run: bash samples/generate-index.sh