Skip to content

End-to-end tests

End-to-end tests #544

Workflow file for this run

name: End-to-end tests
on:
push:
branches:
- main # or any other branches you wish to include
schedule:
- cron: '0 */6 * * *' # This line runs the workflow every 6 hours
jobs:
cypress-run:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Install deps and prepare
uses: cypress-io/[email protected]
with:
build: npm run build
runTests: false
- name: Run tests
uses: cypress-io/[email protected]
with:
start: npm run dev
working-directory: ./packages/site
install: false
browser: replay-chromium
# Always run this step so failed tests are uploaded
- name: Upload replays
if: always()
uses: replayio/[email protected]
with:
api-key: ${{ secrets.RECORD_REPLAY_API_KEY }}