When not using GitHub Actions, use the Replay CLI in your workflow to add source control metadata and upload replays to your team. This can also be used to upload replays recorded locally.
- Install the CLI
- Add metadata for all replays generated during the test run
- Upload replays with your API Key
Example
shellnpm i -g @replayio/replay replay metadata --init --keys source --warn replay upload-all --api-key <api key>
You can also set
RECORD_REPLAY_API_KEY
as an environment variable instead of passing to the upload-all
command. This allows you to store the API Key in your CI provider to keep it secure.The Replay CLI provides other commands and options, such as filtering which replays are uploaded.