End-to-end tests #546
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |