CI Workflows
GitHub upload action
GitHub upload action takes care of uploading your recordings during your CI test runs on GitHub. It enables you to filter the recordings you upload to Replay App.
.github/workflows/e2e.yml
1name: End-to-end tests2on: push3jobs:4 cypress-run:5 runs-on: ubuntu-22.046 steps:7 - name: Checkout8 uses: actions/checkout@v49 - name: Install Replay Chromium10 run: npx replayio install11 - name: Cypress run12 uses: cypress-io/github-action@v613 with:14 browser: replay-chromium15 - name: Upload replays16 if: always()17 uses: replayio/action-upload@v0.5.118 with:19 api-key: ${{ secrets.REPLAY_API_KEY }}
Make sure to set if: ${{ always() }}
so that this step is always executed, even when the previous step fails.
Learn more
Upload strategies
There are different strategies for uploading your replays such as uploading only on test flakes or failures.