-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: use the multiplexer for the playground #58
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small question, but cool addition!
lang=$1 | ||
client=$2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we exit for all
like in https://github.com/algolia/api-clients-automation/blob/main/scripts/multiplexer.sh#L5-L9 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing will break if you run all playground at the same time, it will just look ugly, It's possible to block it like this but not sure if it's necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep but what I meant is it's not intended to run all of them
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Wanted to approved but clicked comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
scripts/multiplexer.sh
Outdated
@@ -19,6 +19,12 @@ CMD=$1 | |||
LANGUAGE=$2 | |||
CLIENT=$3 | |||
|
|||
if [[ $CMD == "./scripts/playground.sh" ]] && [[ $LANGUAGE == "all" ]] || [[ $CLIENT == "all" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if [[ $CMD == "./scripts/playground.sh" ]] && [[ $LANGUAGE == "all" ]] || [[ $CLIENT == "all" ]]; then | |
if [[ $CMD == "./scripts/playground.sh" && $LANGUAGE == "all" ]] || [[ $CLIENT == "all" ]]; then |
I believe it should be
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it with parentheses
🧭 What and Why
Replace all the script in
package.json
byyarn docker playground javascript search
using the commonmultiplexer
script.It is not intended to be used with
all
but it's possible anyway.Changes included:
🧪 Test
yarn docker playground java