Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading