diff --git a/.github/workflows/playwright-nightly.yml b/.github/workflows/playwright-nightly.yml index 42fed4a..c07f5bf 100644 --- a/.github/workflows/playwright-nightly.yml +++ b/.github/workflows/playwright-nightly.yml @@ -19,9 +19,13 @@ jobs: run: | suites=$(find . -name '*.spec.ts' -not -path '*/node_modules/*' | while read spec; do dir=$(dirname "$spec") - if [ -f "$dir/blueprint.json" ]; then - basename "$spec" .spec.ts - fi + while [ "$dir" != "." ] && [ "$dir" != "/" ]; do + if [ -f "$dir/blueprint.json" ]; then + basename "$spec" .spec.ts + break + fi + dir=$(dirname "$dir") + done done | jq -R -s -c 'split("\n") | map(select(length > 0))') echo "suites=$suites" >> "$GITHUB_OUTPUT" diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 355da81..ddb6257 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -18,9 +18,13 @@ jobs: run: | suites=$(find . -name '*.spec.ts' -not -path '*/node_modules/*' | while read spec; do dir=$(dirname "$spec") - if [ -f "$dir/blueprint.json" ]; then - basename "$spec" .spec.ts - fi + while [ "$dir" != "." ] && [ "$dir" != "/" ]; do + if [ -f "$dir/blueprint.json" ]; then + basename "$spec" .spec.ts + break + fi + dir=$(dirname "$dir") + done done | jq -R -s -c 'split("\n") | map(select(length > 0))') echo "suites=$suites" >> "$GITHUB_OUTPUT"