Skip to content

Commit

Permalink
gg
Browse files Browse the repository at this point in the history
  • Loading branch information
ifarzana committed Oct 31, 2023
1 parent 644323b commit d8cc20d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/test-suite.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
name: Test Suite

on:
pull_request:
types:
- opened
branches-ignore:
- master
issue_comment:
types:
- created
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/trigger-cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ jobs:
if [[ "$comment_body" =~ TEST:(.*?)end ]]; then
specs="${BASH_REMATCH[1]}"
echo "Specs to test: $specs"
# Split the content by spaces
IFS=' ' read -ra content_array <<< "$specs"
content_array=("${content_array[@]/ /}") # Remove spaces
# Split the content by commas and remove spaces
IFS=',' read -ra content_array <<< "$specs"
content_array=("${content_array[@]// /}") # Remove spaces from all elements
# Remove leading and trailing slashes from each element
content_array=("${content_array[@]//\//}")
# Prefix the elements with "cypress/e2e/"
content_array=("cypress/e2e/${content_array[@]}")
# Join the content array elements with commas
Expand Down

0 comments on commit d8cc20d

Please sign in to comment.