-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
58 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
# Get array of workspaces | ||
# convert NDJSON stream to an array of arrays, divided by chunk size | ||
# get the workspaces of the current CHUNK environment | ||
workspaces=$(echo $CHUNKS | jq -r ".[$CHUNK]") | ||
echo "$workspaces" | ||
# Initialize an empty string for the filters | ||
filters="" | ||
|
||
# Loop through each workspace in the array | ||
for workspace in $(echo "$workspaces" | jq -r '.[]'); do | ||
# Add the workspace name to the filters array as an argument | ||
filters+=" --filter=${workspace}" | ||
done | ||
echo "$filters" | ||
# Run the test in the selected chunk | ||
yarn run test $filters |