Upload recordings to Replay
Use with @replayio/cypress
or @replayio/playwright
to record and upload replays of failed tests. Read more in the Replay documentation here.
- Log into app.replay.io
- Create a Team API key (Personal API keys can be used, but have a limit of 10 recordings)
- Store the API key as a GitHub Repository Secret named
RECORD_REPLAY_API_KEY
- Add the configuration below to your existing workflow
- uses: replayio/action-upload@v0.5.1
with:
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }}
If no filter is passed, all replays, passed and failing, will be uploaded. To upload only failed tests, use the following example:
- uses: replayio/action-upload@v0.5.1
with:
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }}
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}
Required | Name | Description | Default |
---|---|---|---|
✅ | api-key |
The Replay API Key used to upload recordings | |
filter |
A JSONata function to pass to [$filter](https://docs.jsonata.org/higher-order-functions#filter) to select replays to upload |
||
public |
When true, make replays public on upload | false |
|
include-summaries |
When true, a table of uploaded replays is added to the GitHub workflow summary page | true |
Name | Description |
---|---|
recordings |
An array of recording IDs uploaded |