cypress e2e nightly (#360)

* fixes nightly e2e test

* adds on command
This commit is contained in:
Vim 2021-07-15 10:27:22 -07:00 committed by GitHub
parent dbf1ae2ad8
commit f301dfcd80
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,14 +1,20 @@
name: example-cron name: End to end tests
on: on:
# push
schedule: schedule:
# runs tests every day at 12am ET (4am UTC) # runs tests every day at 12am ET (4am UTC)
- cron: '0 4 * * *' - cron: '0 4 * * *'
jobs: jobs:
nightly: nightly:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
env:
working-directory: ./client
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- run: cd justice40-tool/client
- name: Cypress nightly tests 🌃 - name: Cypress nightly tests 🌃
uses: cypress-io/github-action@v2 uses: cypress-io/github-action@v2
with:
working-directory: ${{env.working-directory}}
start: npm start
wait-on: 'http://localhost:8000'