Allow one-off Browserstack CI dispatch with custom websocket URL #167
+546
−28
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds optional input parameters to all BrowserStack workflows, enabling testing of new Ditto cloud deployments with custom configuration.
Supported workflows:
All workflows now accept these optional inputs (all default to repository secrets when not provided):
websocket_url- Custom Ditto websocket URLapp_id- Custom Ditto app IDplayground_token- Custom Ditto playground tokenauth_url- Custom Ditto auth URLReact Native Fix
DITTO_WEBSOCKET_URLenvironment variableenv.d.tsbut not used in the transport configupdateTransportConfigUsage
Automatic Dispatch with Script
The
scripts/cloud-smoke-test.jsscript can dispatch all BrowserStack workflows and monitor their progress:Basic usage (uses environment variables for all config):
With custom websocket URL:
With multiple custom parameters:
All available options:
--websocket-url <url>- Custom websocket URL--app-id <id>- Custom app ID--playground-token <token>- Custom playground token--auth-url <url>- Custom auth URL--help- Show help messageAll parameters are optional and fall back to these environment variables:
DITTO_WEBSOCKET_URLDITTO_APP_IDDITTO_PLAYGROUND_TOKENDITTO_AUTH_URLThe script will:
Manual Dispatch
To test individual workflows manually:
All parameters are completely optional - workflows will use repository secrets as defaults when inputs are not provided.