Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
Signed-off-by: Miki <[email protected]>
  • Loading branch information
AMoo-Miki committed Dec 22, 2024
1 parent 2b7c1c8 commit a240fb2
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/cypress_tests_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,23 @@ jobs:
}
# Process spec files at the root
process_spec "cypress/integration/*.spec.js" "root"
root_specs=$(find ./cypress/integration -maxdepth 1 -name "*.spec.js")
if [ -n "$root_specs" ]; then
echo "Found root specs: $root_specs"
process_spec "cypress/integration/*.spec.js" "root"
fi
# Process spec folders
for folder in ./cypress/integration/*/; do
folder_name=$(basename "$folder")
process_spec "cypress/integration/$folder_name/**/*.spec.js" "$folder_name"
if [ -d "$folder" ]; then
folder_name=$(basename "$folder")
echo "Processing folder: $folder_name"
folder_specs=$(find "$folder" -name "*.spec.js")
if [ -n "$folder_specs" ]; then
echo "Found specs in $folder_name: $folder_specs"
process_spec "cypress/integration/$folder_name/**/*.spec.js" "$folder_name"
fi
fi
done
echo "Final number of items in inputs_array: ${#inputs_array[@]}"
Expand Down

0 comments on commit a240fb2

Please sign in to comment.