2021-07-19 08:05:32 -07:00
|
|
|
# Full command list of cypress github actions:
|
|
|
|
# https://github.com/cypress-io/github-action#cypress-iogithub-action--
|
|
|
|
|
2021-07-15 10:27:22 -07:00
|
|
|
name: End to end tests
|
2021-06-02 20:53:22 -04:00
|
|
|
on:
|
2021-07-19 08:05:32 -07:00
|
|
|
# To run tests on the push event of a specific branch:
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - vimusds/cypress-debug-download
|
2021-06-02 20:53:22 -04:00
|
|
|
schedule:
|
2021-07-19 08:05:32 -07:00
|
|
|
# runs tests every day at 12am ET (4am UTC):
|
2021-06-02 20:53:22 -04:00
|
|
|
- cron: '0 4 * * *'
|
2021-07-15 10:27:22 -07:00
|
|
|
jobs:
|
2021-06-02 20:53:22 -04:00
|
|
|
nightly:
|
|
|
|
runs-on: ubuntu-20.04
|
2021-07-15 10:27:22 -07:00
|
|
|
env:
|
|
|
|
working-directory: ./client
|
2021-06-02 20:53:22 -04:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Cypress nightly tests 🌃
|
2021-07-15 10:27:22 -07:00
|
|
|
uses: cypress-io/github-action@v2
|
|
|
|
with:
|
|
|
|
working-directory: ${{env.working-directory}}
|
|
|
|
start: npm start
|
|
|
|
wait-on: 'http://localhost:8000'
|
2021-07-19 08:05:32 -07:00
|
|
|
# To run only specific spec/tests:
|
|
|
|
# spec: cypress/e2e/downloadPacket.spec.js
|